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
Return Value
Type: Microsoft.Owin.Logging.ILoggerFactory
Returns ILoggerFactory.
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 b8020aae-374d-46a9-bcb7-8cc2390b93b6 or 175ce3ff-9bbf-4e64-8421-faeb81a0bb51.