C# Class Patterns.Logging.JsonLogValueFormatter

Provides a JSON formatter for log values.
Inheritance: LogValueFormatterBase
Afficher le fichier Open project: patterns-group/code-patterns

Méthodes publiques

Méthode Description
Format ( object value ) : string

Formats the specified value.

JsonLogValueFormatter ( int maxLength = int.MaxValue, int recursionLimit = DefaultRecursionLimit ) : System

Initializes a new instance of the JsonLogValueFormatter class.

Private Methods

Méthode Description
SerializeValue ( object value ) : string

Method Details

Format() public méthode

Formats the specified value.
public Format ( object value ) : string
value object The value.
Résultat string

JsonLogValueFormatter() public méthode

Initializes a new instance of the JsonLogValueFormatter class.
public JsonLogValueFormatter ( int maxLength = int.MaxValue, int recursionLimit = DefaultRecursionLimit ) : System
maxLength int The maximum length.
recursionLimit int The recursion limit.
Résultat System