ChromePHPFormatter
in package
implements
FormatterInterface
Formats a log message according to the ChromePHP array format
Tags
Table of Contents
Interfaces
- FormatterInterface
- Interface for formatters
Properties
- $logLevels : mixed
- Translates Monolog log levels to Wildfire levels.
Methods
- format() : mixed
- Formats a log record.
- formatBatch() : mixed
- Formats a set of log records.
Properties
$logLevels
Translates Monolog log levels to Wildfire levels.
private
mixed
$logLevels
= array(\Monolog\Logger::DEBUG => 'log', \Monolog\Logger::INFO => 'info', \Monolog\Logger::NOTICE => 'info', \Monolog\Logger::WARNING => 'warn', \Monolog\Logger::ERROR => 'error', \Monolog\Logger::CRITICAL => 'error', \Monolog\Logger::ALERT => 'error', \Monolog\Logger::EMERGENCY => 'error')
Methods
format()
Formats a log record.
public
format(array<string|int, mixed> $record) : mixed
Parameters
- $record : array<string|int, mixed>
-
A record to format
Return values
mixed —The formatted record
formatBatch()
Formats a set of log records.
public
formatBatch(array<string|int, mixed> $records) : mixed
Parameters
- $records : array<string|int, mixed>
-
A set of records to format
Return values
mixed —The formatted set of records