LoggerMessage.Define Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Define(LogLevel, EventId, String) |
Creates a delegate which can be invoked for logging a message. |
Define(LogLevel, EventId, String, LogDefineOptions) |
Creates a delegate that can be invoked to log a message. |
Define<T1,T2,T3,T4,T5,T6>(LogLevel, EventId, String, LogDefineOptions) |
Creates a delegate that can be invoked to log a message. |
Define<T1,T2,T3,T4,T5,T6>(LogLevel, EventId, String) |
Creates a delegate which can be invoked for logging a message. |
Define<T1,T2,T3,T4,T5>(LogLevel, EventId, String, LogDefineOptions) |
Creates a delegate that can be invoked to log a message. |
Define<T1,T2,T3,T4,T5>(LogLevel, EventId, String) |
Creates a delegate which can be invoked for logging a message. |
Define<T1,T2,T3,T4>(LogLevel, EventId, String) |
Creates a delegate which can be invoked for logging a message. |
Define<T1,T2,T3,T4>(LogLevel, EventId, String, LogDefineOptions) |
Creates a delegate that can be invoked to log a message. |
Define<T1,T2,T3>(LogLevel, EventId, String) |
Creates a delegate which can be invoked for logging a message. |
Define<T1,T2,T3>(LogLevel, EventId, String, LogDefineOptions) |
Creates a delegate that can be invoked to log a message. |
Define<T1,T2>(LogLevel, EventId, String) |
Creates a delegate which can be invoked for logging a message. |
Define<T1,T2>(LogLevel, EventId, String, LogDefineOptions) |
Creates a delegate that can be invoked to log a message. |
Define<T1>(LogLevel, EventId, String, LogDefineOptions) |
Creates a delegate that can be invoked to log a message. |
Define<T1>(LogLevel, EventId, String) |
Creates a delegate which can be invoked for logging a message. |
Define(LogLevel, EventId, String)
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
Creates a delegate which can be invoked for logging a message.
public:
static Action<Microsoft::Extensions::Logging::ILogger ^, Exception ^> ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString);
public static Action<Microsoft.Extensions.Logging.ILogger,Exception?> Define (Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString);
static member Define : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * string -> Action<Microsoft.Extensions.Logging.ILogger, Exception>
Public Shared Function Define (logLevel As LogLevel, eventId As EventId, formatString As String) As Action(Of ILogger, Exception)
Parameters
- eventId
- EventId
The event ID.
- formatString
- String
The named format string.
Returns
A delegate which when invoked creates a log message.
Applies to
Define(LogLevel, EventId, String, LogDefineOptions)
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
Creates a delegate that can be invoked to log a message.
public:
static Action<Microsoft::Extensions::Logging::ILogger ^, Exception ^> ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString, Microsoft::Extensions::Logging::LogDefineOptions ^ options);
public static Action<Microsoft.Extensions.Logging.ILogger,Exception?> Define (Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions? options);
static member Define : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * string * Microsoft.Extensions.Logging.LogDefineOptions -> Action<Microsoft.Extensions.Logging.ILogger, Exception>
Public Shared Function Define (logLevel As LogLevel, eventId As EventId, formatString As String, options As LogDefineOptions) As Action(Of ILogger, Exception)
Parameters
- logLevel
- LogLevel
The logging level.
- eventId
- EventId
The event ID.
- formatString
- String
The named format string.
- options
- LogDefineOptions
The log define options.
Returns
A delegate that, when invoked, creates a log message.
Applies to
Define<T1,T2,T3,T4,T5,T6>(LogLevel, EventId, String, LogDefineOptions)
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
Creates a delegate that can be invoked to log a message.
public:
generic <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6>
static Action<Microsoft::Extensions::Logging::ILogger ^, T1, T2, T3, T4, T5, T6, Exception ^> ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString, Microsoft::Extensions::Logging::LogDefineOptions ^ options);
public static Action<Microsoft.Extensions.Logging.ILogger,T1,T2,T3,T4,T5,T6,Exception?> Define<T1,T2,T3,T4,T5,T6> (Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions? options);
static member Define : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * string * Microsoft.Extensions.Logging.LogDefineOptions -> Action<Microsoft.Extensions.Logging.ILogger, 'T1, 'T2, 'T3, 'T4, 'T5, 'T6, Exception>
Public Shared Function Define(Of T1, T2, T3, T4, T5, T6) (logLevel As LogLevel, eventId As EventId, formatString As String, options As LogDefineOptions) As Action(Of ILogger, T1, T2, T3, T4, T5, T6, Exception)
Type Parameters
- T1
The type of the first parameter passed to the named format string.
- T2
The type of the second parameter passed to the named format string.
- T3
The type of the third parameter passed to the named format string.
- T4
The type of the fourth parameter passed to the named format string.
- T5
The type of the fifth parameter passed to the named format string.
- T6
The type of the sixth parameter passed to the named format string.
Parameters
- eventId
- EventId
The event ID.
- formatString
- String
The named format string.
- options
- LogDefineOptions
The LogDefineOptions.
Returns
A delegate that, when invoked, creates a log message.
Applies to
Define<T1,T2,T3,T4,T5,T6>(LogLevel, EventId, String)
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
Creates a delegate which can be invoked for logging a message.
public:
generic <typename T1, typename T2, typename T3, typename T4, typename T5, typename T6>
static Action<Microsoft::Extensions::Logging::ILogger ^, T1, T2, T3, T4, T5, T6, Exception ^> ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString);
public static Action<Microsoft.Extensions.Logging.ILogger,T1,T2,T3,T4,T5,T6,Exception?> Define<T1,T2,T3,T4,T5,T6> (Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString);
static member Define : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * string -> Action<Microsoft.Extensions.Logging.ILogger, 'T1, 'T2, 'T3, 'T4, 'T5, 'T6, Exception>
Public Shared Function Define(Of T1, T2, T3, T4, T5, T6) (logLevel As LogLevel, eventId As EventId, formatString As String) As Action(Of ILogger, T1, T2, T3, T4, T5, T6, Exception)
Type Parameters
- T1
The type of the first parameter passed to the named format string.
- T2
The type of the second parameter passed to the named format string.
- T3
The type of the third parameter passed to the named format string.
- T4
The type of the fourth parameter passed to the named format string.
- T5
The type of the fifth parameter passed to the named format string.
- T6
The type of the sixth parameter passed to the named format string.
Parameters
- eventId
- EventId
The event ID.
- formatString
- String
The named format string.
Returns
A delegate which when invoked creates a log message.
Applies to
Define<T1,T2,T3,T4,T5>(LogLevel, EventId, String, LogDefineOptions)
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
Creates a delegate that can be invoked to log a message.
public:
generic <typename T1, typename T2, typename T3, typename T4, typename T5>
static Action<Microsoft::Extensions::Logging::ILogger ^, T1, T2, T3, T4, T5, Exception ^> ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString, Microsoft::Extensions::Logging::LogDefineOptions ^ options);
public static Action<Microsoft.Extensions.Logging.ILogger,T1,T2,T3,T4,T5,Exception?> Define<T1,T2,T3,T4,T5> (Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions? options);
static member Define : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * string * Microsoft.Extensions.Logging.LogDefineOptions -> Action<Microsoft.Extensions.Logging.ILogger, 'T1, 'T2, 'T3, 'T4, 'T5, Exception>
Public Shared Function Define(Of T1, T2, T3, T4, T5) (logLevel As LogLevel, eventId As EventId, formatString As String, options As LogDefineOptions) As Action(Of ILogger, T1, T2, T3, T4, T5, Exception)
Type Parameters
- T1
The type of the first parameter passed to the named format string.
- T2
The type of the second parameter passed to the named format string.
- T3
The type of the third parameter passed to the named format string.
- T4
The type of the fourth parameter passed to the named format string.
- T5
The type of the fifth parameter passed to the named format string.
Parameters
- eventId
- EventId
The event ID.
- formatString
- String
The named format string.
- options
- LogDefineOptions
The LogDefineOptions.
Returns
A delegate that, when invoked, creates a log message.
Applies to
Define<T1,T2,T3,T4,T5>(LogLevel, EventId, String)
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
Creates a delegate which can be invoked for logging a message.
public:
generic <typename T1, typename T2, typename T3, typename T4, typename T5>
static Action<Microsoft::Extensions::Logging::ILogger ^, T1, T2, T3, T4, T5, Exception ^> ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString);
public static Action<Microsoft.Extensions.Logging.ILogger,T1,T2,T3,T4,T5,Exception?> Define<T1,T2,T3,T4,T5> (Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString);
static member Define : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * string -> Action<Microsoft.Extensions.Logging.ILogger, 'T1, 'T2, 'T3, 'T4, 'T5, Exception>
Public Shared Function Define(Of T1, T2, T3, T4, T5) (logLevel As LogLevel, eventId As EventId, formatString As String) As Action(Of ILogger, T1, T2, T3, T4, T5, Exception)
Type Parameters
- T1
The type of the first parameter passed to the named format string.
- T2
The type of the second parameter passed to the named format string.
- T3
The type of the third parameter passed to the named format string.
- T4
The type of the fourth parameter passed to the named format string.
- T5
The type of the fifth parameter passed to the named format string.
Parameters
- eventId
- EventId
The event ID.
- formatString
- String
The named format string.
Returns
A delegate which when invoked creates a log message.
Applies to
Define<T1,T2,T3,T4>(LogLevel, EventId, String)
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
Creates a delegate which can be invoked for logging a message.
public:
generic <typename T1, typename T2, typename T3, typename T4>
static Action<Microsoft::Extensions::Logging::ILogger ^, T1, T2, T3, T4, Exception ^> ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString);
public static Action<Microsoft.Extensions.Logging.ILogger,T1,T2,T3,T4,Exception?> Define<T1,T2,T3,T4> (Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString);
static member Define : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * string -> Action<Microsoft.Extensions.Logging.ILogger, 'T1, 'T2, 'T3, 'T4, Exception>
Public Shared Function Define(Of T1, T2, T3, T4) (logLevel As LogLevel, eventId As EventId, formatString As String) As Action(Of ILogger, T1, T2, T3, T4, Exception)
Type Parameters
- T1
The type of the first parameter passed to the named format string.
- T2
The type of the second parameter passed to the named format string.
- T3
The type of the third parameter passed to the named format string.
- T4
The type of the fourth parameter passed to the named format string.
Parameters
- eventId
- EventId
The event ID.
- formatString
- String
The named format string.
Returns
A delegate which when invoked creates a log message.
Applies to
Define<T1,T2,T3,T4>(LogLevel, EventId, String, LogDefineOptions)
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
Creates a delegate that can be invoked to log a message.
public:
generic <typename T1, typename T2, typename T3, typename T4>
static Action<Microsoft::Extensions::Logging::ILogger ^, T1, T2, T3, T4, Exception ^> ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString, Microsoft::Extensions::Logging::LogDefineOptions ^ options);
public static Action<Microsoft.Extensions.Logging.ILogger,T1,T2,T3,T4,Exception?> Define<T1,T2,T3,T4> (Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions? options);
static member Define : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * string * Microsoft.Extensions.Logging.LogDefineOptions -> Action<Microsoft.Extensions.Logging.ILogger, 'T1, 'T2, 'T3, 'T4, Exception>
Public Shared Function Define(Of T1, T2, T3, T4) (logLevel As LogLevel, eventId As EventId, formatString As String, options As LogDefineOptions) As Action(Of ILogger, T1, T2, T3, T4, Exception)
Type Parameters
- T1
The type of the first parameter passed to the named format string.
- T2
The type of the second parameter passed to the named format string.
- T3
The type of the third parameter passed to the named format string.
- T4
The type of the fourth parameter passed to the named format string.
Parameters
- eventId
- EventId
The event ID.
- formatString
- String
The named format string.
- options
- LogDefineOptions
The LogDefineOptions.
Returns
A delegate that, when invoked, creates a log message.
Applies to
Define<T1,T2,T3>(LogLevel, EventId, String)
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
Creates a delegate which can be invoked for logging a message.
public:
generic <typename T1, typename T2, typename T3>
static Action<Microsoft::Extensions::Logging::ILogger ^, T1, T2, T3, Exception ^> ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString);
public static Action<Microsoft.Extensions.Logging.ILogger,T1,T2,T3,Exception?> Define<T1,T2,T3> (Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString);
static member Define : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * string -> Action<Microsoft.Extensions.Logging.ILogger, 'T1, 'T2, 'T3, Exception>
Public Shared Function Define(Of T1, T2, T3) (logLevel As LogLevel, eventId As EventId, formatString As String) As Action(Of ILogger, T1, T2, T3, Exception)
Type Parameters
- T1
The type of the first parameter passed to the named format string.
- T2
The type of the second parameter passed to the named format string.
- T3
The type of the third parameter passed to the named format string.
Parameters
- eventId
- EventId
The event ID.
- formatString
- String
The named format string.
Returns
A delegate which when invoked creates a log message.
Applies to
Define<T1,T2,T3>(LogLevel, EventId, String, LogDefineOptions)
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
Creates a delegate that can be invoked to log a message.
public:
generic <typename T1, typename T2, typename T3>
static Action<Microsoft::Extensions::Logging::ILogger ^, T1, T2, T3, Exception ^> ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString, Microsoft::Extensions::Logging::LogDefineOptions ^ options);
public static Action<Microsoft.Extensions.Logging.ILogger,T1,T2,T3,Exception?> Define<T1,T2,T3> (Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions? options);
static member Define : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * string * Microsoft.Extensions.Logging.LogDefineOptions -> Action<Microsoft.Extensions.Logging.ILogger, 'T1, 'T2, 'T3, Exception>
Public Shared Function Define(Of T1, T2, T3) (logLevel As LogLevel, eventId As EventId, formatString As String, options As LogDefineOptions) As Action(Of ILogger, T1, T2, T3, Exception)
Type Parameters
- T1
The type of the first parameter passed to the named format string.
- T2
The type of the second parameter passed to the named format string.
- T3
The type of the third parameter passed to the named format string.
Parameters
- eventId
- EventId
The event ID.
- formatString
- String
The named format string.
- options
- LogDefineOptions
The LogDefineOptions.
Returns
A delegate that, when invoked, creates a log message.
Applies to
Define<T1,T2>(LogLevel, EventId, String)
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
Creates a delegate which can be invoked for logging a message.
public:
generic <typename T1, typename T2>
static Action<Microsoft::Extensions::Logging::ILogger ^, T1, T2, Exception ^> ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString);
public static Action<Microsoft.Extensions.Logging.ILogger,T1,T2,Exception?> Define<T1,T2> (Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString);
static member Define : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * string -> Action<Microsoft.Extensions.Logging.ILogger, 'T1, 'T2, Exception>
Public Shared Function Define(Of T1, T2) (logLevel As LogLevel, eventId As EventId, formatString As String) As Action(Of ILogger, T1, T2, Exception)
Type Parameters
- T1
The type of the first parameter passed to the named format string.
- T2
The type of the second parameter passed to the named format string.
Parameters
- eventId
- EventId
The event ID.
- formatString
- String
The named format string.
Returns
A delegate which when invoked creates a log message.
Applies to
Define<T1,T2>(LogLevel, EventId, String, LogDefineOptions)
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
Creates a delegate that can be invoked to log a message.
public:
generic <typename T1, typename T2>
static Action<Microsoft::Extensions::Logging::ILogger ^, T1, T2, Exception ^> ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString, Microsoft::Extensions::Logging::LogDefineOptions ^ options);
public static Action<Microsoft.Extensions.Logging.ILogger,T1,T2,Exception?> Define<T1,T2> (Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions? options);
static member Define : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * string * Microsoft.Extensions.Logging.LogDefineOptions -> Action<Microsoft.Extensions.Logging.ILogger, 'T1, 'T2, Exception>
Public Shared Function Define(Of T1, T2) (logLevel As LogLevel, eventId As EventId, formatString As String, options As LogDefineOptions) As Action(Of ILogger, T1, T2, Exception)
Type Parameters
- T1
The type of the first parameter passed to the named format string.
- T2
The type of the second parameter passed to the named format string.
Parameters
- eventId
- EventId
The event ID.
- formatString
- String
The named format string.
- options
- LogDefineOptions
The LogDefineOptions.
Returns
A delegate that, when invoked, creates a log message.
Applies to
Define<T1>(LogLevel, EventId, String, LogDefineOptions)
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
Creates a delegate that can be invoked to log a message.
public:
generic <typename T1>
static Action<Microsoft::Extensions::Logging::ILogger ^, T1, Exception ^> ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString, Microsoft::Extensions::Logging::LogDefineOptions ^ options);
public static Action<Microsoft.Extensions.Logging.ILogger,T1,Exception?> Define<T1> (Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString, Microsoft.Extensions.Logging.LogDefineOptions? options);
static member Define : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * string * Microsoft.Extensions.Logging.LogDefineOptions -> Action<Microsoft.Extensions.Logging.ILogger, 'T1, Exception>
Public Shared Function Define(Of T1) (logLevel As LogLevel, eventId As EventId, formatString As String, options As LogDefineOptions) As Action(Of ILogger, T1, Exception)
Type Parameters
- T1
The type of the first parameter passed to the named format string.
Parameters
- logLevel
- LogLevel
The logging level.
- eventId
- EventId
The event ID.
- formatString
- String
The named format string.
- options
- LogDefineOptions
The log define options.
Returns
A delegate that, when invoked, creates a log message.
Applies to
Define<T1>(LogLevel, EventId, String)
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
- Source:
- LoggerMessage.cs
Creates a delegate which can be invoked for logging a message.
public:
generic <typename T1>
static Action<Microsoft::Extensions::Logging::ILogger ^, T1, Exception ^> ^ Define(Microsoft::Extensions::Logging::LogLevel logLevel, Microsoft::Extensions::Logging::EventId eventId, System::String ^ formatString);
public static Action<Microsoft.Extensions.Logging.ILogger,T1,Exception?> Define<T1> (Microsoft.Extensions.Logging.LogLevel logLevel, Microsoft.Extensions.Logging.EventId eventId, string formatString);
static member Define : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * string -> Action<Microsoft.Extensions.Logging.ILogger, 'T1, Exception>
Public Shared Function Define(Of T1) (logLevel As LogLevel, eventId As EventId, formatString As String) As Action(Of ILogger, T1, Exception)
Type Parameters
- T1
The type of the first parameter passed to the named format string.
Parameters
- eventId
- EventId
The event ID.
- formatString
- String
The named format string.
Returns
A delegate which when invoked creates a log message.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기