C# Class JSNLog.ApplicationBuilderExtensions

Mostra file Open project: mperdeck/jsnlog

Public Methods

Method Description
UseJSNLog ( this builder, ILoggingAdapter loggingAdapter, JsnlogConfiguration jsnlogConfiguration = null ) : void

Normally, an ASP.NET 5 app would simply call this to insert JSNLog middleware into the pipeline. Note that the loggingAdapter is required, otherwise JSNLog can't hand off log messages. It can live without a configuration though (it will use default settings).

Method Details

UseJSNLog() public static method

Normally, an ASP.NET 5 app would simply call this to insert JSNLog middleware into the pipeline. Note that the loggingAdapter is required, otherwise JSNLog can't hand off log messages. It can live without a configuration though (it will use default settings).
public static UseJSNLog ( this builder, ILoggingAdapter loggingAdapter, JsnlogConfiguration jsnlogConfiguration = null ) : void
builder this
loggingAdapter ILoggingAdapter
jsnlogConfiguration JsnlogConfiguration
return void