Created
September 14, 2016 12:52
-
-
Save gBritz/eaad930b9d37a9b03a1a3a9a0ac76238 to your computer and use it in GitHub Desktop.
Utility log method
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private static void Log(string message, params object[] args) | |
| { | |
| if (!args.IsEmpty()) | |
| { | |
| message = message.With(args); | |
| } | |
| var msg = "{0:dd/MM/yyyy hh:mm:ss.fff} {1}{2}".With(DateTime.Now, message, Environment.NewLine); | |
| File.AppendAllText(@"C:\log.txt", msg); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment