Documentation

ChromePHPFormatter
in package
implements FormatterInterface

Formats a log message according to the ChromePHP array format

Tags
author

Christophe Coevoet stof@notk.org

Interfaces, Classes and Traits

FormatterInterface
Interface for formatters

Table of Contents

$logLevels  : array<int, "log"|"info"|"warn"|"error">
Translates Monolog log levels to Wildfire levels.
format()  : mixed
Formats a log record.
formatBatch()  : mixed
Formats a set of log records.

Properties

$logLevels

Translates Monolog log levels to Wildfire levels.

private array<int, "log"|"info"|"warn"|"error"> $logLevels = [MonologLogger::DEBUG => 'log', MonologLogger::INFO => 'info', MonologLogger::NOTICE => 'info', MonologLogger::WARNING => 'warn', MonologLogger::ERROR => 'error', MonologLogger::CRITICAL => 'error', MonologLogger::ALERT => 'error', MonologLogger::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

Search results