FormattableHandlerTrait
Helper trait for implementing FormattableInterface
This trait is present in monolog 1.x to ease forward compatibility.
Tags
Table of Contents
Properties
Methods
- getFormatter() : FormatterInterface
- {@inheritdoc}
- setFormatter() : HandlerInterface
- {@inheritdoc}
- getDefaultFormatter() : FormatterInterface
- Gets the default formatter.
Properties
$formatter
protected
FormatterInterface
$formatter
Methods
getFormatter()
{@inheritdoc}
public
getFormatter() : FormatterInterface
Return values
FormatterInterfacesetFormatter()
{@inheritdoc}
public
setFormatter(FormatterInterface $formatter) : HandlerInterface
Parameters
- $formatter : FormatterInterface
Tags
Return values
HandlerInterfacegetDefaultFormatter()
Gets the default formatter.
protected
getDefaultFormatter() : FormatterInterface
Overwrite this if the LineFormatter is not a good default for your handler.