Skip to content

Instantly share code, notes, and snippets.

@pysco68
Last active August 29, 2015 14:12
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save pysco68/1d59b2431a12391a68f7 to your computer and use it in GitHub Desktop.
Use NLog as OWIN logger factory
// first install the Nuget Package with:
// Install-Package Pysco68.Owin.Logging.NLogAdapter
// add this reference
using Pysco68.Owin.Logging.NLogAdapter;
public class Startup
{
public void Configuration(IAppBuilder app)
{
// here's the magic
app.UseNLog();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment