Delegates to a new instance using the for getting the logger category name.
Inheritance
System.Object
TypedLogger<TComponent>
Namespace:InfinniPlatform.Logging
Assembly:InfinniPlatform.Core.dll
public class TypedLogger<TComponent> : ILogger<TComponent>
Type Parameters
Name |
Description |
TComponent |
The event source.
|
Constructors
|
Improve this Doc
View Source
Declaration
public TypedLogger(ILoggerFactory loggerFactory)
Parameters
Type |
Name |
Description |
ILoggerFactory |
loggerFactory |
The logger factory.
|
Methods
|
Improve this Doc
View Source
Declaration
public IDisposable BeginScope<TState>(TState state)
Parameters
Type |
Name |
Description |
TState |
state |
|
Returns
Type |
Description |
IDisposable |
|
Type Parameters
|
Improve this Doc
View Source
Declaration
public bool IsEnabled(LogLevel logLevel)
Parameters
Type |
Name |
Description |
LogLevel |
logLevel |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)
Parameters
Type |
Name |
Description |
LogLevel |
logLevel |
|
EventId |
eventId |
|
TState |
state |
|
Exception |
exception |
|
Func<TState, Exception, System.String> |
formatter |
|
Type Parameters
Extension Methods