ILogger Interface

Definition

Represents a type used to perform logging.

public interface class ILogger
public interface ILogger
type ILogger = interface
Public Interface ILogger

Methods

AddCustomProperty(String, String)

For internal use only.

BeginScope(String, Object[])

Begins a logical operation scope.

BeginScope<TState>(TState)

The identifier for the scope.

Execute(String, Action, IEnumerable<KeyValuePair<String,String>>)

For internal use only.

ExecuteAsync(String, Func<Task>, IEnumerable<KeyValuePair<String,String>>)

For internal use only.

IsEnabled(LogLevel)

Checks if the given LogLevel is enabled.

Log(LogLevel, EventId, Exception, String, Object[])

Writes a log entry.

Log(LogLevel, EventId, String, Object[])

Writes a log entry.

Log(LogLevel, Exception, String, Object[])

Writes a log entry.

Log(LogLevel, String, Object[])

Writes a log entry.

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

Writes a log entry.

LogCritical(EventId, Exception, String, Object[])

Formats and writes a critical log message.

LogCritical(EventId, String, Object[])

Formats and writes a critical log message.

LogCritical(Exception, String, Object[])

Formats and writes a critical log message.

LogCritical(String, Object[])

Formats and writes a critical log message.

LogDebug(EventId, Exception, String, Object[])

Formats and writes a debug log message.

LogDebug(EventId, String, Object[])

Formats and writes a debug log message.

LogDebug(Exception, String, Object[])

Formats and writes a debug log message.

LogDebug(String, Object[])

Formats and writes a debug log message.

LogError(EventId, Exception, String, Object[])

Formats and writes an error log message.

LogError(EventId, String, Object[])

Formats and writes an error log message.

LogError(Exception, String, Object[])

Formats and writes an error log message.

LogError(String, Object[])

Formats and writes an error log message.

LogInformation(EventId, Exception, String, Object[])

Formats and writes an information log message.

LogInformation(EventId, String, Object[])

Formats and writes an information log message.

LogInformation(Exception, String, Object[])

Formats and writes an information log message.

LogInformation(String, Object[])

Formats and writes an information log message.

LogMetric(String, IDictionary<String,String>, Int64)

For internal use only.

LogMetric(String, Int64)

For internal use only.

LogTrace(EventId, Exception, String, Object[])

Formats and writes a trace log message.

LogTrace(EventId, String, Object[])

Formats and writes a trace log message.

LogTrace(Exception, String, Object[])

Formats and writes a trace log message.

LogTrace(String, Object[])

Formats and writes a trace log message.

LogWarning(EventId, Exception, String, Object[])

Formats and writes a warning log message.

LogWarning(EventId, String, Object[])

Formats and writes a warning log message.

LogWarning(Exception, String, Object[])

Formats and writes a warning log message.

LogWarning(String, Object[])

Formats and writes a warning log message.

Applies to