Common.Logging factory implementation for OWIN Logging
Configure the underlying Commong.Logging Factory Adapter as usual.
Then to utilize Common.Logging in Owin, use extension methods:
using Owin.Logging.Common;
public class Startup
{
public void ConfigureAuth(IAppBuilder app)
{
app.UseCommonLogging();
}
}
Overloaded methods are available to control the transform of TraceEventType to levels in Common.Logging.ILog
Default transform is:
TraceEventType | Common Loglevel |
---|---|
Critical | Fatal |
Error | Error |
Warning | Warn |
Information | Info |
Verbose | Trace |
Start | Debug |
Stop | Debug |
Suspend | Debug |
Resume | Debug |
Transfer | Debug |