Language

FakeLogRecord コンストラクター

定義

FakeLogRecord クラスの新しいインスタンスを初期化します。

public:
 FakeLogRecord(Microsoft::Extensions::Logging::LogLevel level, Microsoft::Extensions::Logging::EventId id, System::Object ^ state, Exception ^ exception, System::String ^ message, System::Collections::Generic::IReadOnlyList<System::Object ^> ^ scopes, System::String ^ category, bool enabled, DateTimeOffset timestamp);
public FakeLogRecord(Microsoft.Extensions.Logging.LogLevel level, Microsoft.Extensions.Logging.EventId id, object? state, Exception? exception, string message, System.Collections.Generic.IReadOnlyList<object?> scopes, string? category, bool enabled, DateTimeOffset timestamp);
new Microsoft.Extensions.Logging.Testing.FakeLogRecord : Microsoft.Extensions.Logging.LogLevel * Microsoft.Extensions.Logging.EventId * obj * Exception * string * System.Collections.Generic.IReadOnlyList<obj> * string * bool * DateTimeOffset -> Microsoft.Extensions.Logging.Testing.FakeLogRecord
Public Sub New (level As LogLevel, id As EventId, state As Object, exception As Exception, message As String, scopes As IReadOnlyList(Of Object), category As String, enabled As Boolean, timestamp As DateTimeOffset)

パラメーター

level
LogLevel

ログ レコードを生成するときに使用されるレベル。

id
EventId

特定のログ ステートメントを表す ID。

state
Object

ログ レコードの作成時に呼び出し元によって提供される不透明な状態。

exception
Exception

ログ レコードに関連付けられている省略可能な例外。

message
String

レコードの書式設定されたメッセージ テキスト。

scopes
IReadOnlyList<Object>

このログ レコードに対してアクティブなアクティブなスコープの一覧。

category
String

このレコードの省略可能なカテゴリ。これは、 ILogger<TCategoryName>の T に対応します。

enabled
Boolean

Log<TState>(LogLevel, EventId, TState, Exception, Func<TState,Exception,String>) メソッドが呼び出されたときにログ レベルが有効であったかどうか。

timestamp
DateTimeOffset

ログ レコードが作成された時刻。

適用対象