LogEntry<TState> コンストラクター

定義

指定したログ レベル、カテゴリ、イベント ID、状態、例外、およびフォーマッタ パラメーターを使用して、新しい LogEntry<TState> を作成します。

public:
 LogEntry(Microsoft::Extensions::Logging::LogLevel logLevel, System::String ^ category, Microsoft::Extensions::Logging::EventId eventId, TState state, Exception ^ exception, Func<TState, Exception ^, System::String ^> ^ formatter);
public LogEntry (Microsoft.Extensions.Logging.LogLevel logLevel, string category, Microsoft.Extensions.Logging.EventId eventId, TState state, Exception exception, Func<TState,Exception,string> formatter);
public LogEntry (Microsoft.Extensions.Logging.LogLevel logLevel, string category, Microsoft.Extensions.Logging.EventId eventId, TState state, Exception? exception, Func<TState,Exception?,string> formatter);
new Microsoft.Extensions.Logging.Abstractions.LogEntry<'State> : Microsoft.Extensions.Logging.LogLevel * string * Microsoft.Extensions.Logging.EventId * 'State * Exception * Func<'State, Exception, string> -> Microsoft.Extensions.Logging.Abstractions.LogEntry<'State>
Public Sub New (logLevel As LogLevel, category As String, eventId As EventId, state As TState, exception As Exception, formatter As Func(Of TState, Exception, String))

パラメーター

logLevel
LogLevel

ログ レベル。

category
String

ログのカテゴリ名。

eventId
EventId

ログ イベント ID。

state
TState

ログが書き込まれる状態。

exception
Exception

ログ例外。

formatter
Func<TState,Exception,String>

フォーマッタ。

適用対象