C# Class NLog.Layouts.JsonLayout

Inheritance: Layout
ファイルを表示 Open project: NLog/NLog Class Usage Examples

Private Properties

Property Type Description
AppendJsonAttributeValue void
IsNumeric bool

Public Methods

Method Description
JsonLayout ( ) : Config

Initializes a new instance of the JsonLayout class.

Protected Methods

Method Description
GetFormattedMessage ( LogEventInfo logEvent ) : string

Formats the log event as a JSON document for writing.

Private Methods

Method Description
AppendJsonAttributeValue ( JsonAttribute attrib, string text, StringBuilder sb, bool first ) : void
IsNumeric ( System objType, System typeCode ) : bool

Method Details

GetFormattedMessage() protected method

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

JsonLayout() public method

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