| NlogFactoryExtensionsUseNLog Method (IAppBuilder, FuncTraceEventType, LogLevel) |
Set the logger factory for this app builder to NLogFactory
Namespace:
NLog.Owin.Logging
Assembly:
NLog.Owin.Logging (in NLog.Owin.Logging.dll) Version: 4.0+fa964b487a009a302dffab9a322d07bcc66aee9c
Syntax public static IAppBuilder UseNLog(
this IAppBuilder app,
Func<TraceEventType, LogLevel> getLogLevel
)
<ExtensionAttribute>
Public Shared Function UseNLog (
app As IAppBuilder,
getLogLevel As Func(Of TraceEventType, LogLevel)
) As IAppBuilder
Dim app As IAppBuilder
Dim getLogLevel As Func(Of TraceEventType, LogLevel)
Dim returnValue As IAppBuilder
returnValue = app.UseNLog(getLogLevel)
[<ExtensionAttribute>]
static member UseNLog :
app : IAppBuilder *
getLogLevel : Func<TraceEventType, LogLevel> -> IAppBuilder
Parameters
- app
- Type: IAppBuilder
- getLogLevel
- Type: SystemFuncTraceEventType, LogLevel
Return Value
Type:
IAppBuilderUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IAppBuilder. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also