Skip to main content

Class Log73Logger

Assembly: Log73.Extensions.Logging.dll
View Source
Declaration
public class Log73Logger : ILogger

Properties

Config

The configuration for this Log73.Extensions.Logging.Log73Logger.

View Source
Declaration
public Log73LoggerConfiguration Config { get; set; }

Fields

Name

The name for this logger.

View Source
Declaration
public readonly string Name

Methods

Log<TState>(LogLevel, EventId, TState, Exception, Func<TState, Exception, String>)

View Source
Declaration
public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)
Parameters
TypeName
Microsoft.Extensions.Logging.LogLevellogLevel
Microsoft.Extensions.Logging.EventIdeventId
&lt;TState&gt;state
System.Exceptionexception
System.Func&lt;&lt;TState&gt;,System.Exception,System.String&gt;formatter
Type Parameters
  • TState

IsEnabled(LogLevel)

If the message should be logged under the current configuration's Log73.LogLevel.

View Source
Declaration
public bool IsEnabled(LogLevel logLevel)
Returns

System.Boolean:

Parameters
TypeName
Microsoft.Extensions.Logging.LogLevellogLevel

BeginScope<TState>(TState)

View Source
Declaration
public IDisposable BeginScope<TState>(TState state)
Returns

System.IDisposable

Parameters
TypeName
&lt;TState&gt;state
Type Parameters
  • TState

Implements

  • Microsoft.Extensions.Logging.ILogger

Extension Methods