C# 클래스 NLog.Layouts.JsonLayout

상속: Layout
파일 보기 프로젝트 열기: NLog/NLog 1 사용 예제들

Private Properties

프로퍼티 타입 설명
AppendJsonAttributeValue void
IsNumeric bool

공개 메소드들

메소드 설명
JsonLayout ( ) : Config

Initializes a new instance of the JsonLayout class.

보호된 메소드들

메소드 설명
GetFormattedMessage ( LogEventInfo logEvent ) : string

Formats the log event as a JSON document for writing.

비공개 메소드들

메소드 설명
AppendJsonAttributeValue ( JsonAttribute attrib, string text, StringBuilder sb, bool first ) : void
IsNumeric ( System objType, System typeCode ) : bool

메소드 상세

GetFormattedMessage() 보호된 메소드

Formats the log event as a JSON document for writing.
protected GetFormattedMessage ( LogEventInfo logEvent ) : string
logEvent LogEventInfo The log event to be formatted.
리턴 string

JsonLayout() 공개 메소드

Initializes a new instance of the JsonLayout class.
public JsonLayout ( ) : Config
리턴 Config