diff options
| author | Roy <roy.mail.net@gmail.com> | 2018-02-20 00:03:51 +0200 |
|---|---|---|
| committer | Roy <roy.mail.net@gmail.com> | 2018-02-20 00:03:51 +0200 |
| commit | 1a573aaa346ec4b8bd58a0e35ab9df571a09b855 (patch) | |
| tree | 18055974ba06b0b1282955a2160e1fad5dd21bcc /Software/Visual_Studio/Tango.Logging | |
| parent | 160ec4042539e69a7494bcde5c893c6dffcbf1b6 (diff) | |
| download | Tango-1a573aaa346ec4b8bd58a0e35ab9df571a09b855.tar.gz Tango-1a573aaa346ec4b8bd58a0e35ab9df571a09b855.zip | |
Added logs to developer module!
Diffstat (limited to 'Software/Visual_Studio/Tango.Logging')
| -rw-r--r-- | Software/Visual_Studio/Tango.Logging/LogManager.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Logging/LogManager.cs b/Software/Visual_Studio/Tango.Logging/LogManager.cs index 60ccccc34..5518c520d 100644 --- a/Software/Visual_Studio/Tango.Logging/LogManager.cs +++ b/Software/Visual_Studio/Tango.Logging/LogManager.cs @@ -115,6 +115,15 @@ namespace Tango.Logging /// Add new message log item. /// </summary> /// <param name="message">Message.</param> + public static String LogFormat(String message, object argument, [CallerMemberName] string caller = null, [CallerFilePath] string file = null, [CallerLineNumber] int lineNumber = 0) + { + return Log(String.Format(message, argument), LogCategory.General, caller, file, lineNumber); + } + + /// <summary> + /// Add new message log item. + /// </summary> + /// <param name="message">Message.</param> public static String Log(String message, [CallerMemberName] string caller = null, [CallerFilePath] string file = null, [CallerLineNumber] int lineNumber = 0) { return Log(message, LogCategory.General, caller, file, lineNumber); |
