Class LoggerMessage
Inheritance
LoggerMessage
Assembly: Microsoft.Extensions.Logging.Abstractions.dll
Syntax
public static class LoggerMessage
Methods
Define(LogLevel, EventId, string)
Declaration
public static Action<ILogger, Exception?> Define(LogLevel logLevel, EventId eventId, string formatString)
Parameters
Returns
Define(LogLevel, EventId, string, LogDefineOptions?)
Declaration
public static Action<ILogger, Exception?> Define(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options)
Parameters
Returns
DefineScope(string)
Declaration
public static Func<ILogger, IDisposable> DefineScope(string formatString)
Parameters
Type |
Name |
Description |
string |
formatString |
|
Returns
DefineScope<T1>(string)
Declaration
public static Func<ILogger, T1, IDisposable> DefineScope<T1>(string formatString)
Parameters
Type |
Name |
Description |
string |
formatString |
|
Returns
Type Parameters
DefineScope<T1, T2>(string)
Declaration
public static Func<ILogger, T1, T2, IDisposable> DefineScope<T1, T2>(string formatString)
Parameters
Type |
Name |
Description |
string |
formatString |
|
Returns
Type Parameters
DefineScope<T1, T2, T3>(string)
Declaration
public static Func<ILogger, T1, T2, T3, IDisposable> DefineScope<T1, T2, T3>(string formatString)
Parameters
Type |
Name |
Description |
string |
formatString |
|
Returns
Type Parameters
Name |
Description |
T1 |
|
T2 |
|
T3 |
|
DefineScope<T1, T2, T3, T4>(string)
Declaration
public static Func<ILogger, T1, T2, T3, T4, IDisposable> DefineScope<T1, T2, T3, T4>(string formatString)
Parameters
Type |
Name |
Description |
string |
formatString |
|
Returns
Type Parameters
Name |
Description |
T1 |
|
T2 |
|
T3 |
|
T4 |
|
DefineScope<T1, T2, T3, T4, T5>(string)
Declaration
public static Func<ILogger, T1, T2, T3, T4, T5, IDisposable> DefineScope<T1, T2, T3, T4, T5>(string formatString)
Parameters
Type |
Name |
Description |
string |
formatString |
|
Returns
Type Parameters
Name |
Description |
T1 |
|
T2 |
|
T3 |
|
T4 |
|
T5 |
|
DefineScope<T1, T2, T3, T4, T5, T6>(string)
Declaration
public static Func<ILogger, T1, T2, T3, T4, T5, T6, IDisposable> DefineScope<T1, T2, T3, T4, T5, T6>(string formatString)
Parameters
Type |
Name |
Description |
string |
formatString |
|
Returns
Type Parameters
Name |
Description |
T1 |
|
T2 |
|
T3 |
|
T4 |
|
T5 |
|
T6 |
|
Define<T1>(LogLevel, EventId, string)
Declaration
public static Action<ILogger, T1, Exception?> Define<T1>(LogLevel logLevel, EventId eventId, string formatString)
Parameters
Returns
Type Parameters
Define<T1>(LogLevel, EventId, string, LogDefineOptions?)
Declaration
public static Action<ILogger, T1, Exception?> Define<T1>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options)
Parameters
Returns
Type Parameters
Define<T1, T2>(LogLevel, EventId, string)
Declaration
public static Action<ILogger, T1, T2, Exception?> Define<T1, T2>(LogLevel logLevel, EventId eventId, string formatString)
Parameters
Returns
Type Parameters
Define<T1, T2>(LogLevel, EventId, string, LogDefineOptions?)
Declaration
public static Action<ILogger, T1, T2, Exception?> Define<T1, T2>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options)
Parameters
Returns
Type Parameters
Define<T1, T2, T3>(LogLevel, EventId, string)
Declaration
public static Action<ILogger, T1, T2, T3, Exception?> Define<T1, T2, T3>(LogLevel logLevel, EventId eventId, string formatString)
Parameters
Returns
Type Parameters
Name |
Description |
T1 |
|
T2 |
|
T3 |
|
Define<T1, T2, T3>(LogLevel, EventId, string, LogDefineOptions?)
Declaration
public static Action<ILogger, T1, T2, T3, Exception?> Define<T1, T2, T3>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options)
Parameters
Returns
Type Parameters
Name |
Description |
T1 |
|
T2 |
|
T3 |
|
Define<T1, T2, T3, T4>(LogLevel, EventId, string)
Declaration
public static Action<ILogger, T1, T2, T3, T4, Exception?> Define<T1, T2, T3, T4>(LogLevel logLevel, EventId eventId, string formatString)
Parameters
Returns
Type Parameters
Name |
Description |
T1 |
|
T2 |
|
T3 |
|
T4 |
|
Define<T1, T2, T3, T4>(LogLevel, EventId, string, LogDefineOptions?)
Declaration
public static Action<ILogger, T1, T2, T3, T4, Exception?> Define<T1, T2, T3, T4>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options)
Parameters
Returns
Type Parameters
Name |
Description |
T1 |
|
T2 |
|
T3 |
|
T4 |
|
Define<T1, T2, T3, T4, T5>(LogLevel, EventId, string)
Declaration
public static Action<ILogger, T1, T2, T3, T4, T5, Exception?> Define<T1, T2, T3, T4, T5>(LogLevel logLevel, EventId eventId, string formatString)
Parameters
Returns
Type Parameters
Name |
Description |
T1 |
|
T2 |
|
T3 |
|
T4 |
|
T5 |
|
Define<T1, T2, T3, T4, T5>(LogLevel, EventId, string, LogDefineOptions?)
Declaration
public static Action<ILogger, T1, T2, T3, T4, T5, Exception?> Define<T1, T2, T3, T4, T5>(LogLevel logLevel, EventId eventId, string formatString, LogDefineOptions? options)
Parameters
Returns
Type Parameters
Name |
Description |
T1 |
|
T2 |
|
T3 |
|
T4 |
|
T5 |
|
Define<T1, T2, T3, T4, T5, T6>(LogLevel, EventId, string)
Declaration
public static Action<ILogger, T1, T2, T3, T4, T5, T6, Exception?> Define<T1, T2, T3, T4, T5, T6>(LogLevel logLevel, EventId eventId, string formatString)
Parameters
Returns
Type Parameters
Name |
Description |
T1 |
|
T2 |
|
T3 |
|
T4 |
|
T5 |
|
T6 |
|
Define<T1, T2, T3, T4, T5, T6>(LogLevel, EventId, string, LogDefineOptions?)
Declaration
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)
Parameters
Returns
Type Parameters
Name |
Description |
T1 |
|
T2 |
|
T3 |
|
T4 |
|
T5 |
|
T6 |
|