C# Class Patterns.Logging.JsonLogValueFormatter

Provides a JSON formatter for log values.
Inheritance: LogValueFormatterBase
Show file Open project: patterns-group/code-patterns

Public Methods

Method 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

Method Description
SerializeValue ( object value ) : string

Method Details

Format() public method

Formats the specified value.
public Format ( object value ) : string
value object The value.
return string

JsonLogValueFormatter() public method

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.
return System