From b4682a3abfe299c19b24752b2fb1ce2477611ec3 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Fri, 10 Apr 2020 15:06:42 +0300 Subject: Implemented FSE/PPC Logs. --- Software/Visual_Studio/Tango.Logging/LogItemBase.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Software/Visual_Studio/Tango.Logging/LogItemBase.cs') diff --git a/Software/Visual_Studio/Tango.Logging/LogItemBase.cs b/Software/Visual_Studio/Tango.Logging/LogItemBase.cs index f89b73b40..01d520f6a 100644 --- a/Software/Visual_Studio/Tango.Logging/LogItemBase.cs +++ b/Software/Visual_Studio/Tango.Logging/LogItemBase.cs @@ -46,6 +46,14 @@ namespace Tango.Logging get { return GetRelativeCallerFilePath(); } } + /// + /// Gets the name of the caller file class. + /// + public String ClassName + { + get { return RelativeCallerFile.Split('\\').LastOrDefault()?.Split('.').FirstOrDefault(); } + } + /// /// Gets or sets the caller line number. /// -- cgit v1.3.1