LoggerMessage.Define 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Define(LogLevel, EventId, String) |
建立可叫用以記錄訊息的委派。 |
Define(LogLevel, EventId, String, LogDefineOptions) |
建立可叫用以記錄訊息的委派。 |
Define<T1,T2,T3,T4,T5,T6>(LogLevel, EventId, String, LogDefineOptions) |
建立可叫用以記錄訊息的委派。 |
Define<T1,T2,T3,T4,T5,T6>(LogLevel, EventId, String) |
建立可叫用以記錄訊息的委派。 |
Define<T1,T2,T3,T4,T5>(LogLevel, EventId, String, LogDefineOptions) |
建立可叫用以記錄訊息的委派。 |
Define<T1,T2,T3,T4,T5>(LogLevel, EventId, String) |
建立可叫用以記錄訊息的委派。 |
Define<T1,T2,T3,T4>(LogLevel, EventId, String) |
建立可叫用以記錄訊息的委派。 |
Define<T1,T2,T3,T4>(LogLevel, EventId, String, LogDefineOptions) |
建立可叫用以記錄訊息的委派。 |
Define<T1,T2,T3>(LogLevel, EventId, String) |
建立可叫用以記錄訊息的委派。 |
Define<T1,T2,T3>(LogLevel, EventId, String, LogDefineOptions) |
建立可叫用以記錄訊息的委派。 |
Define<T1,T2>(LogLevel, EventId, String) |
建立可叫用以記錄訊息的委派。 |
Define<T1,T2>(LogLevel, EventId, String, LogDefineOptions) |
建立可叫用以記錄訊息的委派。 |
Define<T1>(LogLevel, EventId, String, LogDefineOptions) |
建立可叫用以記錄訊息的委派。 |
Define<T1>(LogLevel, EventId, String) |
建立可叫用以記錄訊息的委派。 |
Define(LogLevel, EventId, String)
建立可叫用以記錄訊息的委派。
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);
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)
參數
- eventId
- EventId
事件識別碼。
- formatString
- String
具名的格式字串。
傳回
叫用時會建立記錄訊息的委派。
適用於
Define(LogLevel, EventId, String, LogDefineOptions)
建立可叫用以記錄訊息的委派。
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)
參數
- logLevel
- LogLevel
記錄層級,
- eventId
- EventId
事件識別碼。
- formatString
- String
具名的格式字串。
- options
- LogDefineOptions
記錄定義選項。
傳回
叫用時建立記錄訊息的委派。
適用於
Define<T1,T2,T3,T4,T5,T6>(LogLevel, EventId, String, LogDefineOptions)
建立可叫用以記錄訊息的委派。
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)
類型參數
- T1
傳遞至具名格式字串的第一個參數類型。
- T2
傳遞至具名格式字串的第二個參數類型。
- T3
傳遞至具名格式字串的第三個參數類型。
- T4
傳遞至具名格式字串的第四個參數類型。
- T5
傳遞至具名格式字串的第五個參數類型。
- T6
傳遞至具名格式字串的第六個參數類型。
參數
- eventId
- EventId
事件識別碼。
- formatString
- String
具名的格式字串。
- options
- LogDefineOptions
傳回
叫用時建立記錄訊息的委派。
適用於
Define<T1,T2,T3,T4,T5,T6>(LogLevel, EventId, String)
建立可叫用以記錄訊息的委派。
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);
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)
類型參數
- T1
傳遞至具名格式字串的第一個參數類型。
- T2
傳遞至具名格式字串的第二個參數類型。
- T3
傳遞至具名格式字串的第三個參數類型。
- T4
傳遞至具名格式字串的第四個參數類型。
- T5
傳遞至具名格式字串的第五個參數類型。
- T6
傳遞至具名格式字串的第六個參數類型。
參數
- eventId
- EventId
事件識別碼。
- formatString
- String
具名的格式字串。
傳回
叫用時會建立記錄訊息的委派。
適用於
Define<T1,T2,T3,T4,T5>(LogLevel, EventId, String, LogDefineOptions)
建立可叫用以記錄訊息的委派。
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)
類型參數
- T1
傳遞至具名格式字串的第一個參數類型。
- T2
傳遞至具名格式字串的第二個參數類型。
- T3
傳遞至具名格式字串的第三個參數類型。
- T4
傳遞至具名格式字串的第四個參數類型。
- T5
傳遞至具名格式字串的第五個參數類型。
參數
- eventId
- EventId
事件識別碼。
- formatString
- String
具名的格式字串。
- options
- LogDefineOptions
傳回
叫用時建立記錄訊息的委派。
適用於
Define<T1,T2,T3,T4,T5>(LogLevel, EventId, String)
建立可叫用以記錄訊息的委派。
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);
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)
類型參數
- T1
傳遞至具名格式字串的第一個參數類型。
- T2
傳遞至具名格式字串的第二個參數類型。
- T3
傳遞至具名格式字串的第三個參數類型。
- T4
傳遞至具名格式字串的第四個參數類型。
- T5
傳遞至具名格式字串的第五個參數類型。
參數
- eventId
- EventId
事件識別碼。
- formatString
- String
具名的格式字串。
傳回
叫用時會建立記錄訊息的委派。
適用於
Define<T1,T2,T3,T4>(LogLevel, EventId, String)
建立可叫用以記錄訊息的委派。
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);
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)
類型參數
- T1
傳遞至具名格式字串的第一個參數類型。
- T2
傳遞至具名格式字串的第二個參數類型。
- T3
傳遞至具名格式字串的第三個參數類型。
- T4
傳遞至具名格式字串的第四個參數類型。
參數
- eventId
- EventId
事件識別碼。
- formatString
- String
具名的格式字串。
傳回
叫用時會建立記錄訊息的委派。
適用於
Define<T1,T2,T3,T4>(LogLevel, EventId, String, LogDefineOptions)
建立可叫用以記錄訊息的委派。
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)
類型參數
- T1
傳遞至具名格式字串的第一個參數類型。
- T2
傳遞至具名格式字串的第二個參數型別。
- T3
傳遞至具名格式字串的第三個參數類型。
- T4
傳遞至具名格式字串的第四個參數類型。
參數
- eventId
- EventId
事件識別碼。
- formatString
- String
具名的格式字串。
- options
- LogDefineOptions
傳回
叫用時建立記錄訊息的委派。
適用於
Define<T1,T2,T3>(LogLevel, EventId, String)
建立可叫用以記錄訊息的委派。
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);
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)
類型參數
- T1
傳遞至具名格式字串之第一個參數的類型。
- T2
傳遞至具名格式字串的第二個參數型別。
- T3
傳遞至具名格式字串的第三個參數類型。
參數
- eventId
- EventId
事件識別碼。
- formatString
- String
具名的格式字串。
傳回
叫用時會建立記錄訊息的委派。
適用於
Define<T1,T2,T3>(LogLevel, EventId, String, LogDefineOptions)
建立可叫用以記錄訊息的委派。
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)
類型參數
- T1
傳遞至具名格式字串之第一個參數的類型。
- T2
傳遞至具名格式字串的第二個參數型別。
- T3
傳遞至具名格式字串的第三個參數類型。
參數
- eventId
- EventId
事件識別碼。
- formatString
- String
具名的格式字串。
- options
- LogDefineOptions
傳回
叫用時建立記錄訊息的委派。
適用於
Define<T1,T2>(LogLevel, EventId, String)
建立可叫用以記錄訊息的委派。
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);
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)
類型參數
- T1
傳遞至具名格式字串之第一個參數的類型。
- T2
傳遞至具名格式字串的第二個參數型別。
參數
- eventId
- EventId
事件識別碼。
- formatString
- String
具名的格式字串。
傳回
叫用時會建立記錄訊息的委派。
適用於
Define<T1,T2>(LogLevel, EventId, String, LogDefineOptions)
建立可叫用以記錄訊息的委派。
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)
類型參數
- T1
傳遞至具名格式字串之第一個參數的類型。
- T2
傳遞至具名格式字串的第二個參數型別。
參數
- eventId
- EventId
事件識別碼。
- formatString
- String
具名的格式字串。
- options
- LogDefineOptions
傳回
叫用時建立記錄訊息的委派。
適用於
Define<T1>(LogLevel, EventId, String, LogDefineOptions)
建立可叫用以記錄訊息的委派。
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)
類型參數
- T1
傳遞至具名格式字串之第一個參數的類型。
參數
- logLevel
- LogLevel
記錄層級,
- eventId
- EventId
事件識別碼。
- formatString
- String
具名的格式字串。
- options
- LogDefineOptions
記錄定義選項。
傳回
叫用時建立記錄訊息的委派。
適用於
Define<T1>(LogLevel, EventId, String)
建立可叫用以記錄訊息的委派。
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);
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)
類型參數
- T1
傳遞至具名格式字串之第一個參數的類型。
參數
- eventId
- EventId
事件識別碼。
- formatString
- String
具名的格式字串。
傳回
叫用時會建立記錄訊息的委派。