<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.2" />

LoggerExtensions

public static class LoggerExtensions
ILogger extension methods for common scenarios.
public static IDisposable BeginScope(this ILogger logger, string messageFormat, object[] args)

Formats the message and creates a scope.

public static void Log(this ILogger logger, LogLevel logLevel, 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, 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.

public static void LogCritical(this ILogger logger, EventId eventId, string message, object[] args)

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.

public static void LogCritical(this ILogger logger, string message, object[] args)

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.

public static void LogDebug(this ILogger logger, EventId eventId, string message, object[] args)

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.

public static void LogDebug(this ILogger logger, string message, object[] args)

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.

public static void LogError(this ILogger logger, EventId eventId, string message, object[] args)

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.

public static void LogError(this ILogger logger, string message, object[] args)

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.

public static void LogInformation(this ILogger logger, string message, object[] args)

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.

public static void LogTrace(this ILogger logger, EventId eventId, string message, object[] args)

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.

public static void LogTrace(this ILogger logger, string message, object[] args)

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.

public static void LogWarning(this ILogger logger, EventId eventId, string message, object[] args)

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.

public static void LogWarning(this ILogger logger, string message, object[] args)

Formats and writes a warning log message.