NormalizerFormatter

Normalizes incoming records to remove objects/resources so it's easier to dump to various targets
implements Monolog\Formatter\FormatterInterface

Known subclasses

Monolog\Formatter\JsonFormatter, SAREhub\Commons\Logger\DefaultJsonLogFormatter
Methods Summary
public
# __construct( string $dateFormat = NULL )
public
# format( array $record )
{@inheritdoc}

Implementation of

public
# formatBatch( array $records )
protected
# normalize( $data )
protected
protected
# toJson( mixed $data , bool $ignoreErrors = false )
Return the JSON representation of a value
public
# detectAndCleanUtf8( mixed & $data )
Detect invalid UTF-8 string characters and convert to valid UTF-8. Valid UTF-8 input will be left unmodified, but strings containing invalid UTF-8 codepoints will be reencoded as UTF-8 with an assumed original encoding of ISO-8859-15. This conversion may result in incorrect output if the actual encoding was not ISO-8859-15, but it will be clean UTF-8 output and will not rely on expensive and fragile detection algorithms. Function converts the input in place in the passed variable so that it can be used as a callback for array_walk_recursive.

private


Constants Summary
public string SIMPLE_DATE
# 'Y-m-d H:i:s'
Properties Summary
protected $dateFormat

# NULL