Created
April 16, 2018 12:36
-
-
Save ramonsmits/d194572ce992c48aa000aee86eb4a66d to your computer and use it in GitHub Desktop.
NLog code api async
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
| var config = new LoggingConfiguration(); | |
| var console = new ColoredConsoleTarget(); | |
| var async = new AsyncTargetWrapper(console); | |
| config.AddTarget("console", wrapper); | |
| config.LoggingRules.Add(new LoggingRule("*", LogLevel.Info, async)); | |
| config.DefaultCultureInfo = CultureInfo.InvariantCulture; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment