Class Log73Logger
Inheritance
System.Object
Log73Logger
Assembly: Log73.Extensions.Logging.dll
Syntax
public class Log73Logger : ILogger
Constructors
|
Improve this Doc
View Source
Log73Logger(String, Log73LoggerConfiguration)
Declaration
public Log73Logger(string name, Log73LoggerConfiguration config)
Parameters
Fields
|
Improve this Doc
View Source
Name
The name for this logger.
Declaration
public readonly string Name
Field Value
| Type |
Description |
| System.String |
|
Properties
|
Improve this Doc
View Source
Config
Declaration
public Log73LoggerConfiguration Config { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
BeginScope<TState>(TState)
Declaration
public IDisposable BeginScope<TState>(TState state)
Parameters
| Type |
Name |
Description |
| TState |
state |
|
Returns
| Type |
Description |
| IDisposable |
|
Type Parameters
|
Improve this Doc
View Source
IsEnabled(Microsoft.Extensions.Logging.LogLevel)
If the message should be logged under the current configuration's LogLevel.
Declaration
public bool IsEnabled(Microsoft.Extensions.Logging.LogLevel logLevel)
Parameters
| Type |
Name |
Description |
| Microsoft.Extensions.Logging.LogLevel |
logLevel |
|
Returns
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
Log<TState>(Microsoft.Extensions.Logging.LogLevel, EventId, TState, Exception, Func<TState, Exception, String>)
Declaration
public void Log<TState>(Microsoft.Extensions.Logging.LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)
Parameters
| Type |
Name |
Description |
| Microsoft.Extensions.Logging.LogLevel |
logLevel |
|
| EventId |
eventId |
|
| TState |
state |
|
| Exception |
exception |
|
| Func<TState, Exception, System.String> |
formatter |
|
Type Parameters
Extension Methods