AppBuilderLoggerExtensions.SetLoggerFactory Method

Sets the server.LoggerFactory in the Properties collection.

Namespace:  Microsoft.Owin.Logging
Assembly:  Microsoft.Owin (in Microsoft.Owin.dll)

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Sub SetLoggerFactory ( _
    app As IAppBuilder, _
    loggerFactory As ILoggerFactory _
)
'Usage
Dim app As IAppBuilder 
Dim loggerFactory As ILoggerFactory 

app.SetLoggerFactory(loggerFactory)
public static void SetLoggerFactory(
    this IAppBuilder app,
    ILoggerFactory loggerFactory
)
[ExtensionAttribute]
public:
static void SetLoggerFactory(
    IAppBuilder^ app, 
    ILoggerFactory^ loggerFactory
)
static member SetLoggerFactory : 
        app:IAppBuilder * 
        loggerFactory:ILoggerFactory -> unit
public static function SetLoggerFactory(
    app : IAppBuilder, 
    loggerFactory : ILoggerFactory
)

Parameters

  • app
    Type: IAppBuilder
    The application builder.

Usage 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 https://msdn.microsoft.com/en-us/library/bb384936(v=vs.111) or https://msdn.microsoft.com/en-us/library/bb383977(v=vs.111).

See Also

Reference

AppBuilderLoggerExtensions Class

Microsoft.Owin.Logging Namespace