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