diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-31 13:23:54 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-31 13:23:54 +0300 |
| commit | a56427605302770b4c0a71a5ff4da439300a2250 (patch) | |
| tree | 176317dcfc861c4c82777dfdd916a83ae1dfd0f2 /Software/Visual_Studio/Tango.Logging/VSOutputLogger.cs | |
| parent | c728eba7cf217972c47e0a65afcb1975f6d6f6f1 (diff) | |
| download | Tango-a56427605302770b4c0a71a5ff4da439300a2250.tar.gz Tango-a56427605302770b4c0a71a5ff4da439300a2250.zip | |
Working on External bridge !
Diffstat (limited to 'Software/Visual_Studio/Tango.Logging/VSOutputLogger.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Logging/VSOutputLogger.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.Logging/VSOutputLogger.cs b/Software/Visual_Studio/Tango.Logging/VSOutputLogger.cs index 3804bdaa3..970cc6c83 100644 --- a/Software/Visual_Studio/Tango.Logging/VSOutputLogger.cs +++ b/Software/Visual_Studio/Tango.Logging/VSOutputLogger.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Diagnostics; using System.Linq; +using System.Reflection; using System.Text; using System.Threading.Tasks; @@ -12,6 +13,8 @@ namespace Tango.Logging /// </summary> public class VSOutputLogger : ILogger { + private String _assembly_name; + /// <summary> /// Initializes a new instance of the <see cref="VSOutputLogger"/> class. /// </summary> @@ -19,6 +22,8 @@ namespace Tango.Logging { Immediate = true; Enabled = true; + + _assembly_name = Assembly.GetEntryAssembly().GetName().Name + ": "; } /// <summary> @@ -27,7 +32,7 @@ namespace Tango.Logging /// <param name="output">The output.</param> public void OnLog(LogItemBase output) { - Debug.WriteLine(output.ToString()); + Debug.WriteLine(_assembly_name + output.ToString()); } private bool _isEnabled; |
