Monolog\Formatter\WildfireFormatter
Serializes a log message according to Wildfire's header requirements
- Author: Eric Clemmons (@ericclemmons) <eric@uxdriven.com>
Synopsis
class WildfireFormatter
extends NormalizerFormatter
{
- // Inherited constants from NormalizerFormatter
- const SIMPLE_DATE = "Y-m-d H:i:s";
- // members
- private array $logLevels;
- // Inherited members from NormalizerFormatter
- protected $dateFormat;
- // methods
- public void format()
- public void formatBatch()
- protected void normalize()
- // Inherited methods from NormalizerFormatter
- public void __construct()
- public void format()
- public void formatBatch()
- protected void normalize()
- protected void toJson()
Hierarchy
Constants
Name | Value |
---|---|
SIMPLE_DATE | "Y-m-d H:i:s" |
Members
private
-
$logLevels
Translates Monolog log levels to Wildfire levels.
protected
- $dateFormat
Methods
protected
public
- format() — {@inheritdoc}
- formatBatch()
Inherited from Monolog\Formatter\NormalizerFormatter
protected
public
- format() — {@inheritdoc}
- formatBatch() — {@inheritdoc}