Skip to content

Instantly share code, notes, and snippets.

@pysco68
Last active August 29, 2015 14:12
Show Gist options
  • Save pysco68/1d59b2431a12391a68f7 to your computer and use it in GitHub Desktop.
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