<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.0-preview.6.24327.7" />

LoggerMessage

public static class LoggerMessage
Creates delegates which can be later cached to log messages in a performant way.
public static Action<ILogger, Exception> Define(LogLevel logLevel, EventId eventId, string formatString)

Creates a delegate which can be invoked for logging a message.

public static Action<ILogger, Exception> Define(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions options)

Creates a delegate that can be invoked to log a message.

public static Action<ILogger, T1, Exception> Define<T1>(LogLevel logLevel, EventId eventId, string formatString)

Creates a delegate which can be invoked for logging a message.

public static Action<ILogger, T1, Exception> Define<T1>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions options)

Creates a delegate that can be invoked to log a message.

public static Action<ILogger, T1, T2, Exception> Define<T1, T2>(LogLevel logLevel, EventId eventId, string formatString)

Creates a delegate which can be invoked for logging a message.

public static Action<ILogger, T1, T2, Exception> Define<T1, T2>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions options)

Creates a delegate that can be invoked to log a message.

public static Action<ILogger, T1, T2, T3, Exception> Define<T1, T2, T3>(LogLevel logLevel, EventId eventId, string formatString)

Creates a delegate which can be invoked for logging a message.

public static Action<ILogger, T1, T2, T3, Exception> Define<T1, T2, T3>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions options)

Creates a delegate that can be invoked to log a message.

public static Action<ILogger, T1, T2, T3, T4, Exception> Define<T1, T2, T3, T4>(LogLevel logLevel, EventId eventId, string formatString)

Creates a delegate which can be invoked for logging a message.

public static Action<ILogger, T1, T2, T3, T4, Exception> Define<T1, T2, T3, T4>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions options)

Creates a delegate that can be invoked to log a message.

public static Action<ILogger, T1, T2, T3, T4, T5, Exception> Define<T1, T2, T3, T4, T5>(LogLevel logLevel, EventId eventId, string formatString)

Creates a delegate which can be invoked for logging a message.

public static Action<ILogger, T1, T2, T3, T4, T5, Exception> Define<T1, T2, T3, T4, T5>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions options)

Creates a delegate that can be invoked to log a message.

public static Action<ILogger, T1, T2, T3, T4, T5, T6, Exception> Define<T1, T2, T3, T4, T5, T6>(LogLevel logLevel, EventId eventId, string formatString)

Creates a delegate which can be invoked for logging a message.

public static Action<ILogger, T1, T2, T3, T4, T5, T6, Exception> Define<T1, T2, T3, T4, T5, T6>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions options)

Creates a delegate that can be invoked to log a message.

public static Func<ILogger, IDisposable> DefineScope(string formatString)

Creates a delegate which can be invoked to create a log scope.

public static Func<ILogger, T1, IDisposable> DefineScope<T1>(string formatString)

Creates a delegate which can be invoked to create a log scope.

public static Func<ILogger, T1, T2, IDisposable> DefineScope<T1, T2>(string formatString)

Creates a delegate which can be invoked to create a log scope.

public static Func<ILogger, T1, T2, T3, IDisposable> DefineScope<T1, T2, T3>(string formatString)

Creates a delegate which can be invoked to create a log scope.

public static Func<ILogger, T1, T2, T3, T4, IDisposable> DefineScope<T1, T2, T3, T4>(string formatString)

Creates a delegate which can be invoked to create a log scope.

public static Func<ILogger, T1, T2, T3, T4, T5, IDisposable> DefineScope<T1, T2, T3, T4, T5>(string formatString)

Creates a delegate which can be invoked to create a log scope.

public static Func<ILogger, T1, T2, T3, T4, T5, T6, IDisposable> DefineScope<T1, T2, T3, T4, T5, T6>(string formatString)

Creates a delegate which can be invoked to create a log scope.