aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Logging/LogManager.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-04-15 19:51:07 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-04-15 19:51:07 +0300
commitca293b80c52a54c73251fbf3cd50741fb5653ae9 (patch)
treef1168fa167a26bf8455e601291b8a19945a70187 /Software/Visual_Studio/Tango.Logging/LogManager.cs
parent9ff8293b603f72c5faa8d238b3005524c31cc5a8 (diff)
downloadTango-ca293b80c52a54c73251fbf3cd50741fb5653ae9.tar.gz
Tango-ca293b80c52a54c73251fbf3cd50741fb5653ae9.zip
Lots Of Work !
Diffstat (limited to 'Software/Visual_Studio/Tango.Logging/LogManager.cs')
-rw-r--r--Software/Visual_Studio/Tango.Logging/LogManager.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Logging/LogManager.cs b/Software/Visual_Studio/Tango.Logging/LogManager.cs
index c654b646f..804fc14c5 100644
--- a/Software/Visual_Studio/Tango.Logging/LogManager.cs
+++ b/Software/Visual_Studio/Tango.Logging/LogManager.cs
@@ -4,6 +4,7 @@ using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
+using System.Reflection;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading;
@@ -107,6 +108,7 @@ namespace Tango.Logging
if (!Categories.Contains(category)) return e;
ExceptionLogItem log = new ExceptionLogItem();
+ log.CallerAssembly = Assembly.GetCallingAssembly().FullName;
log.CallerMethodName = caller;
log.CallerFile = file;
log.CallerLineNumber = lineNumber;
@@ -164,6 +166,7 @@ namespace Tango.Logging
if (!Categories.Contains(category)) return message;
MessageLogItem log = new MessageLogItem();
+ log.CallerAssembly = Assembly.GetCallingAssembly().FullName;
log.CallerMethodName = caller;
log.CallerFile = file;
log.CallerLineNumber = lineNumber;