Class LoggerExtensions
Inheritance
LoggerExtensions
Assembly: Microsoft.Extensions.Logging.Abstractions.dll
Syntax
public static class LoggerExtensions
Methods
BeginScope(ILogger, string, params object?[])
Declaration
public static IDisposable BeginScope(this ILogger logger, string messageFormat, params object?[] args)
Parameters
Returns
Log(ILogger, LogLevel, EventId, Exception?, string?, params object?[])
Declaration
public static void Log(this ILogger logger, LogLevel logLevel, EventId eventId, Exception? exception, string? message, params object?[] args)
Parameters
Log(ILogger, LogLevel, EventId, string?, params object?[])
Declaration
public static void Log(this ILogger logger, LogLevel logLevel, EventId eventId, string? message, params object?[] args)
Parameters
Log(ILogger, LogLevel, Exception?, string?, params object?[])
Declaration
public static void Log(this ILogger logger, LogLevel logLevel, Exception? exception, string? message, params object?[] args)
Parameters
Log(ILogger, LogLevel, string?, params object?[])
Declaration
public static void Log(this ILogger logger, LogLevel logLevel, string? message, params object?[] args)
Parameters
LogCritical(ILogger, EventId, Exception?, string?, params object?[])
Declaration
public static void LogCritical(this ILogger logger, EventId eventId, Exception? exception, string? message, params object?[] args)
Parameters
LogCritical(ILogger, EventId, string?, params object?[])
Declaration
public static void LogCritical(this ILogger logger, EventId eventId, string? message, params object?[] args)
Parameters
LogCritical(ILogger, Exception?, string?, params object?[])
Declaration
public static void LogCritical(this ILogger logger, Exception? exception, string? message, params object?[] args)
Parameters
LogCritical(ILogger, string?, params object?[])
Declaration
public static void LogCritical(this ILogger logger, string? message, params object?[] args)
Parameters
LogDebug(ILogger, EventId, Exception?, string?, params object?[])
Declaration
public static void LogDebug(this ILogger logger, EventId eventId, Exception? exception, string? message, params object?[] args)
Parameters
LogDebug(ILogger, EventId, string?, params object?[])
Declaration
public static void LogDebug(this ILogger logger, EventId eventId, string? message, params object?[] args)
Parameters
LogDebug(ILogger, Exception?, string?, params object?[])
Declaration
public static void LogDebug(this ILogger logger, Exception? exception, string? message, params object?[] args)
Parameters
LogDebug(ILogger, string?, params object?[])
Declaration
public static void LogDebug(this ILogger logger, string? message, params object?[] args)
Parameters
LogError(ILogger, EventId, Exception?, string?, params object?[])
Declaration
public static void LogError(this ILogger logger, EventId eventId, Exception? exception, string? message, params object?[] args)
Parameters
LogError(ILogger, EventId, string?, params object?[])
Declaration
public static void LogError(this ILogger logger, EventId eventId, string? message, params object?[] args)
Parameters
LogError(ILogger, Exception?, string?, params object?[])
Declaration
public static void LogError(this ILogger logger, Exception? exception, string? message, params object?[] args)
Parameters
LogError(ILogger, string?, params object?[])
Declaration
public static void LogError(this ILogger logger, string? message, params object?[] args)
Parameters
Declaration
public static void LogInformation(this ILogger logger, EventId eventId, Exception? exception, string? message, params object?[] args)
Parameters
Declaration
public static void LogInformation(this ILogger logger, EventId eventId, string? message, params object?[] args)
Parameters
Declaration
public static void LogInformation(this ILogger logger, Exception? exception, string? message, params object?[] args)
Parameters
Declaration
public static void LogInformation(this ILogger logger, string? message, params object?[] args)
Parameters
LogTrace(ILogger, EventId, Exception?, string?, params object?[])
Declaration
public static void LogTrace(this ILogger logger, EventId eventId, Exception? exception, string? message, params object?[] args)
Parameters
LogTrace(ILogger, EventId, string?, params object?[])
Declaration
public static void LogTrace(this ILogger logger, EventId eventId, string? message, params object?[] args)
Parameters
LogTrace(ILogger, Exception?, string?, params object?[])
Declaration
public static void LogTrace(this ILogger logger, Exception? exception, string? message, params object?[] args)
Parameters
LogTrace(ILogger, string?, params object?[])
Declaration
public static void LogTrace(this ILogger logger, string? message, params object?[] args)
Parameters
LogWarning(ILogger, EventId, Exception?, string?, params object?[])
Declaration
public static void LogWarning(this ILogger logger, EventId eventId, Exception? exception, string? message, params object?[] args)
Parameters
LogWarning(ILogger, EventId, string?, params object?[])
Declaration
public static void LogWarning(this ILogger logger, EventId eventId, string? message, params object?[] args)
Parameters
LogWarning(ILogger, Exception?, string?, params object?[])
Declaration
public static void LogWarning(this ILogger logger, Exception? exception, string? message, params object?[] args)
Parameters
LogWarning(ILogger, string?, params object?[])
Declaration
public static void LogWarning(this ILogger logger, string? message, params object?[] args)
Parameters