Create a gist now

Instantly share code, notes, and snippets.

@pysco68 /startup.cs
Last active Aug 29, 2015

What would you like to do?
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