diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-05-16 11:04:28 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-05-16 11:04:28 +0300 |
| commit | e7e90c8ec976b9bc2357e2be6abac43e4479ef2d (patch) | |
| tree | 83557289b7431336719ec73b1d4831a629815c60 /Software/Visual_Studio/Tango.Logging/LogItemBase.cs | |
| parent | d9ed0030d661a547a549719c0288182ee0defa92 (diff) | |
| download | Tango-e7e90c8ec976b9bc2357e2be6abac43e4479ef2d.tar.gz Tango-e7e90c8ec976b9bc2357e2be6abac43e4479ef2d.zip | |
Improved logs format readability.
Diffstat (limited to 'Software/Visual_Studio/Tango.Logging/LogItemBase.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Logging/LogItemBase.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.Logging/LogItemBase.cs b/Software/Visual_Studio/Tango.Logging/LogItemBase.cs index 720de0905..fbf7d1548 100644 --- a/Software/Visual_Studio/Tango.Logging/LogItemBase.cs +++ b/Software/Visual_Studio/Tango.Logging/LogItemBase.cs @@ -30,6 +30,14 @@ namespace Tango.Logging public String CallerFile { get; set; } /// <summary> + /// Gets the relative caller file. + /// </summary> + public String RelativeCallerFile + { + get { return GetRelativeCallerFilePath(); } + } + + /// <summary> /// Gets or sets the caller line number. /// </summary> public int CallerLineNumber { get; set; } @@ -69,7 +77,7 @@ namespace Tango.Logging if (Path.IsPathRooted(CallerFile)) { - return CallerFile.Remove(0, base_path.Length); + return CallerFile.Remove(0, base_path.Length).Replace("\\", " | "); } else { |
