Last active
August 29, 2015 14:12
-
-
Save pysco68/1d59b2431a12391a68f7 to your computer and use it in GitHub Desktop.
Use NLog as OWIN logger factory
This file contains 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
// 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