Skip to content

Instantly share code, notes, and snippets.

@gregmac
Last active October 17, 2019 15:07
Show Gist options
  • Save gregmac/8fd38d1c8137c36425f66a0346fd800a to your computer and use it in GitHub Desktop.
Save gregmac/8fd38d1c8137c36425f66a0346fd800a to your computer and use it in GitHub Desktop.
NLog logging configuration for LINQPad
{
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