C# 클래스 Serilog.Formatting.Display.MessageTemplateTextFormatter

A ITextFormatter that supports the Serilog message template format. Formatting log events for display has a different set of requirements and expectations from rendering the data within them. To meet this, the formatter overrides some behavior: First, strings are always output as literals (not quoted) unless some other format is applied to them. Second, tokens without matching properties are skipped rather than being written as raw text.
상속: ITextFormatter
파일 보기 프로젝트 열기: serilog/serilog 1 사용 예제들

공개 메소드들

메소드 설명
Format ( LogEvent logEvent, TextWriter output ) : void

Format the log event into the output.

MessageTemplateTextFormatter ( string outputTemplate, IFormatProvider formatProvider ) : System

Construct a MessageTemplateTextFormatter.

메소드 상세

Format() 공개 메소드

Format the log event into the output.
public Format ( LogEvent logEvent, TextWriter output ) : void
logEvent Serilog.Events.LogEvent The event to format.
output System.IO.TextWriter The output.
리턴 void

MessageTemplateTextFormatter() 공개 메소드

Construct a MessageTemplateTextFormatter.
public MessageTemplateTextFormatter ( string outputTemplate, IFormatProvider formatProvider ) : System
outputTemplate string A message template describing the /// output messages.
formatProvider IFormatProvider Supplies culture-specific formatting information, or null.
리턴 System