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 which can be invoked for logging a message. |
Define<T1,T2,T3,T4,T5,T6>(LogLevel, EventId, String, LogDefineOptions) |
Creates a delegate which can be invoked for logging 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 which can be invoked for logging 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 which can be invoked for logging 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 which can be invoked for logging 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 which can be invoked for logging a message. |
Define<T1>(LogLevel, EventId, String, LogDefineOptions) |
Creates a delegate which can be invoked for logging 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 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, 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
- eventId
- EventId
The event id
- formatString
- String
The named format string
- options
- LogDefineOptions
The LogDefineOptions
Returns
A delegate which 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 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, 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 which 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 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, 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 which 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 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, 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 which 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 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, 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 which 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 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, 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 which 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 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, 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
- eventId
- EventId
The event id
- formatString
- String
The named format string
- options
- LogDefineOptions
The LogDefineOptions
Returns
A delegate which 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.