AppBuilderLoggerExtensions.CreateLogger<TType> Method (IAppBuilder)
Creates a new ILogger instance from the server.LoggerFactory in the Properties collection.
Namespace: Microsoft.Owin.Logging
Assembly: Microsoft.Owin (in Microsoft.Owin.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function CreateLogger(Of TType) ( _
app As IAppBuilder _
) As ILogger
'Usage
Dim app As IAppBuilder
Dim returnValue As ILogger
returnValue = app.CreateLogger()
public static ILogger CreateLogger<TType>(
this IAppBuilder app
)
[ExtensionAttribute]
public:
generic<typename TType>
static ILogger^ CreateLogger(
IAppBuilder^ app
)
static member CreateLogger :
app:IAppBuilder -> ILogger
JScript does not support generic types and methods.
Type Parameters
- TType
The type of the logger.
Parameters
- app
Type: IAppBuilder
The application builder.
Return Value
Type: Microsoft.Owin.Logging.ILogger
The created ILogger.
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).