From e7e90c8ec976b9bc2357e2be6abac43e4479ef2d Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Wed, 16 May 2018 11:04:28 +0300 Subject: Improved logs format readability. --- Software/DB/Tango.mdf | Bin 75497472 -> 75497472 bytes Software/DB/Tango_log.ldf | Bin 1572864 -> 1572864 bytes .../Views/ApplicationLogsView.xaml | 2 +- .../Visual_Studio/Tango.Logging/LogItemBase.cs | 10 +++++++++- 4 files changed, 10 insertions(+), 2 deletions(-) (limited to 'Software') diff --git a/Software/DB/Tango.mdf b/Software/DB/Tango.mdf index d0e9d8aae..ec4256e00 100644 Binary files a/Software/DB/Tango.mdf and b/Software/DB/Tango.mdf differ diff --git a/Software/DB/Tango_log.ldf b/Software/DB/Tango_log.ldf index 2d365a977..461b36dda 100644 Binary files a/Software/DB/Tango_log.ldf and b/Software/DB/Tango_log.ldf differ diff --git a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/Views/ApplicationLogsView.xaml b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/Views/ApplicationLogsView.xaml index b8f464e5f..9f3ebe065 100644 --- a/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/Views/ApplicationLogsView.xaml +++ b/Software/Visual_Studio/MachineStudio/Modules/Tango.MachineStudio.Logging/Views/ApplicationLogsView.xaml @@ -189,7 +189,7 @@ - + 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 @@ -29,6 +29,14 @@ namespace Tango.Logging /// public String CallerFile { get; set; } + /// + /// Gets the relative caller file. + /// + public String RelativeCallerFile + { + get { return GetRelativeCallerFilePath(); } + } + /// /// Gets or sets the caller line number. /// @@ -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 { -- cgit v1.3.1