LoggerExtensions
ILogger extension methods for common scenarios.
Formats the message and creates a scope.
Formats and writes a log message at the specified log level.
public static void Log(this ILogger logger, LogLevel logLevel, EventId eventId, string message, object[] args)
Formats and writes a log message at the specified log level.
public static void Log(this ILogger logger, LogLevel logLevel, Exception exception, string message, object[] args)
Formats and writes a log message at the specified log level.
public static void Log(this ILogger logger, LogLevel logLevel, EventId eventId, Exception exception, string message, object[] args)
Formats and writes a log message at the specified log level.
public static void LogCritical(this ILogger logger, EventId eventId, Exception exception, string message, object[] args)
Formats and writes a critical log message.
Formats and writes a critical log message.
public static void LogCritical(this ILogger logger, Exception exception, string message, object[] args)
Formats and writes a critical log message.
Formats and writes a critical log message.
public static void LogDebug(this ILogger logger, EventId eventId, Exception exception, string message, object[] args)
Formats and writes a debug log message.
Formats and writes a debug log message.
public static void LogDebug(this ILogger logger, Exception exception, string message, object[] args)
Formats and writes a debug log message.
Formats and writes a debug log message.
public static void LogError(this ILogger logger, EventId eventId, Exception exception, string message, object[] args)
Formats and writes an error log message.
Formats and writes an error log message.
public static void LogError(this ILogger logger, Exception exception, string message, object[] args)
Formats and writes an error log message.
Formats and writes an error log message.
public static void LogInformation(this ILogger logger, EventId eventId, Exception exception, string message, object[] args)
Formats and writes an informational log message.
public static void LogInformation(this ILogger logger, EventId eventId, string message, object[] args)
Formats and writes an informational log message.
public static void LogInformation(this ILogger logger, Exception exception, string message, object[] args)
Formats and writes an informational log message.
Formats and writes an informational log message.
public static void LogTrace(this ILogger logger, EventId eventId, Exception exception, string message, object[] args)
Formats and writes a trace log message.
Formats and writes a trace log message.
public static void LogTrace(this ILogger logger, Exception exception, string message, object[] args)
Formats and writes a trace log message.
Formats and writes a trace log message.
public static void LogWarning(this ILogger logger, EventId eventId, Exception exception, string message, object[] args)
Formats and writes a warning log message.
Formats and writes a warning log message.
public static void LogWarning(this ILogger logger, Exception exception, string message, object[] args)
Formats and writes a warning log message.
Formats and writes a warning log message.