Last active
October 17, 2019 15:07
-
-
Save gregmac/8fd38d1c8137c36425f66a0346fd800a to your computer and use it in GitHub Desktop.
NLog logging configuration for LINQPad
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
{ | |
NLog.LogManager.Configuration = new NLog.Config.LoggingConfiguration(); | |
NLog.LogManager.Configuration.AddTarget("console", new NLog.Targets.ConsoleTarget()); | |
NLog.LogManager.Configuration.AddRule(NLog.LogLevel.Debug, NLog.LogLevel.Fatal, "console"); | |
NLog.LogManager.ReconfigExistingLoggers(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment