FakeLogCollectorOptions.OutputFormatter 属性

定义

获取或设置一个委托,该委托用于在将日志记录发送到已注册的输出接收器之前以专用方式设置日志记录的格式。

public:
 property Func<Microsoft::Extensions::Logging::Testing::FakeLogRecord ^, System::String ^> ^ OutputFormatter { Func<Microsoft::Extensions::Logging::Testing::FakeLogRecord ^, System::String ^> ^ get(); void set(Func<Microsoft::Extensions::Logging::Testing::FakeLogRecord ^, System::String ^> ^ value); };
public Func<Microsoft.Extensions.Logging.Testing.FakeLogRecord,string> OutputFormatter { get; set; }
member this.OutputFormatter : Func<Microsoft.Extensions.Logging.Testing.FakeLogRecord, string> with get, set
Public Property OutputFormatter As Func(Of FakeLogRecord, String)

属性值

适用于