Share via


AppBuilderLoggerExtensions.GetLoggerFactory Method

Retrieves the server.LoggerFactory from the Properties collection.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function GetLoggerFactory ( _
    app As IAppBuilder _
) As ILoggerFactory
'Usage
Dim app As IAppBuilder 
Dim returnValue As ILoggerFactory 

returnValue = app.GetLoggerFactory()
public static ILoggerFactory GetLoggerFactory(
    this IAppBuilder app
)
[ExtensionAttribute]
public:
static ILoggerFactory^ GetLoggerFactory(
    IAppBuilder^ app
)
static member GetLoggerFactory : 
        app:IAppBuilder -> ILoggerFactory
public static function GetLoggerFactory(
    app : IAppBuilder
) : ILoggerFactory

Parameters

  • app
    Type: IAppBuilder
    The application builder.

Return Value

Type: Microsoft.Owin.Logging.ILoggerFactory
The ILoggerFactory object.

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