$level
$level :
SwiftMailerHandler uses Swift_Mailer to send the emails
Classes extending it should (in most cases) only implement write($record)
$formatter : \Monolog\Formatter\FormatterInterface
__construct(\Swift_Mailer $mailer, callback|\Swift_Message $message, integer $level = \Monolog\Logger::ERROR, Boolean $bubble = true)
\Swift_Mailer | $mailer | The mailer to use |
callback|\Swift_Message | $message | An example message for real messages, only the body will be replaced |
integer | $level | The minimum logging level at which this handler will be triggered |
Boolean | $bubble | Whether the messages that are handled can bubble up the stack or not |
setFormatter(\Monolog\Formatter\FormatterInterface $formatter)
Sets the formatter.
\Monolog\Formatter\FormatterInterface | $formatter |
getFormatter() : \Monolog\Formatter\FormatterInterface
Gets the formatter.
getDefaultFormatter() : \Monolog\Formatter\FormatterInterface
Gets the default formatter.
Loading…