C# Class NLog.Layouts.JsonLayout

Inheritance: Layout
Afficher le fichier Open project: NLog/NLog Class Usage Examples

Private Properties

Свойство Type Description
AppendJsonAttributeValue void
IsNumeric bool

Méthodes publiques

Méthode Description
JsonLayout ( ) : Config

Initializes a new instance of the JsonLayout class.

Méthodes protégées

Méthode Description
GetFormattedMessage ( LogEventInfo logEvent ) : string

Formats the log event as a JSON document for writing.

Private Methods

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

Method Details

GetFormattedMessage() protected méthode

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

JsonLayout() public méthode

Initializes a new instance of the JsonLayout class.
public JsonLayout ( ) : Config
Résultat Config