aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Logging/LogItemBase.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-08-30 09:05:59 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-08-30 09:05:59 +0300
commitdceb1f65f3c648238690cfde848385c8fae6baae (patch)
treeee606d7f050504a98177934862cb818926b33a17 /Software/Visual_Studio/Tango.Logging/LogItemBase.cs
parent883a5aa210d213b89b463b113c551a3f8924970f (diff)
downloadTango-dceb1f65f3c648238690cfde848385c8fae6baae.tar.gz
Tango-dceb1f65f3c648238690cfde848385c8fae6baae.zip
Added JsonIgnore to some props in LogItemBase.
Dropped SkipFileLoggin from Tango.Logging.
Diffstat (limited to 'Software/Visual_Studio/Tango.Logging/LogItemBase.cs')
-rw-r--r--Software/Visual_Studio/Tango.Logging/LogItemBase.cs16
1 files changed, 4 insertions, 12 deletions
diff --git a/Software/Visual_Studio/Tango.Logging/LogItemBase.cs b/Software/Visual_Studio/Tango.Logging/LogItemBase.cs
index 944f61130..d5271d213 100644
--- a/Software/Visual_Studio/Tango.Logging/LogItemBase.cs
+++ b/Software/Visual_Studio/Tango.Logging/LogItemBase.cs
@@ -1,4 +1,5 @@
-using System;
+using Newtonsoft.Json;
+using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
@@ -22,6 +23,7 @@ namespace Tango.Logging
/// <summary>
/// Gets or sets an optional log object.
/// </summary>
+ [JsonIgnore]
public Object LogObject
{
@@ -29,17 +31,6 @@ namespace Tango.Logging
set { _logObject = value; }
}
- [NonSerialized]
- private bool _skipFileLogging;
- /// <summary>
- /// Gets or sets a value indicating whether this log should not be written to a file.
- /// </summary>
- public bool SkipFileLogging
- {
- get { return _skipFileLogging; }
- set { _skipFileLogging = value; }
- }
-
/// <summary>
/// Gets or sets the caller method adding the exception.
/// </summary>
@@ -53,6 +44,7 @@ namespace Tango.Logging
/// <summary>
/// Gets the relative caller file.
/// </summary>
+ [JsonIgnore]
public String RelativeCallerFile
{
get { return GetRelativeCallerFilePath(); }