LoggerExtensions.LogDebug Method

Definition

Overloads

LogDebug(ILogger, String, Object[])

Formats and writes a debug log message.

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

Formats and writes a debug log message.

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

Formats and writes a debug log message.

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

Formats and writes a debug log message.

LogDebug(ILogger, String, Object[])

Formats and writes a debug log message.

public static void LogDebug (this Microsoft.Extensions.Logging.ILogger logger, string message, object[] args);
Parameters
logger
ILogger

The ILogger to write to.

message
String

Format string of the log message.

args
Object[]

An object array that contains zero or more objects to format.

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

Formats and writes a debug log message.

public static void LogDebug (this Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Logging.EventId eventId, string message, object[] args);
Parameters
logger
ILogger

The ILogger to write to.

eventId
EventId

The event id associated with the log.

message
String

Format string of the log message.

args
Object[]

An object array that contains zero or more objects to format.

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

Formats and writes a debug log message.

public static void LogDebug (this Microsoft.Extensions.Logging.ILogger logger, Exception exception, string message, object[] args);
Parameters
logger
ILogger

The ILogger to write to.

exception
Exception

The exception to log.

message
String

Format string of the log message.

args
Object[]

An object array that contains zero or more objects to format.

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

Formats and writes a debug log message.

public static void LogDebug (this Microsoft.Extensions.Logging.ILogger logger, Microsoft.Extensions.Logging.EventId eventId, Exception exception, string message, object[] args);
Parameters
logger
ILogger

The ILogger to write to.

eventId
EventId

The event id associated with the log.

exception
Exception

The exception to log.

message
String

Format string of the log message.

args
Object[]

An object array that contains zero or more objects to format.

Applies to