$level
$level :
Stores to any stream resource
Can be used to store into php://stderr, remote and local files, etc.
$formatter : \Monolog\Formatter\FormatterInterface
__construct(resource|string $stream, integer $level = \Monolog\Logger::DEBUG, Boolean $bubble = true, integer|null $filePermission = null, Boolean $useLocking = false)
resource|string | $stream | |
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 |
integer|null | $filePermission | Optional file permissions (default (0644) are only for owner read/write) |
Boolean | $useLocking | Try to lock log file before doing any writes |
If a missing directory is not buildable
If stream is not a resource or string
isHandling(array $record) : Boolean
Checks whether the given record will be handled by this handler.
This is mostly done for performance reasons, to avoid calling processors for nothing.
Handlers should still check the record levels within handle(), returning false in isHandling() is no guarantee that handle() will not be called, and isHandling() might not be called for a given record.
array | $record | Partial log record containing only a level key |
setFormatter(\Monolog\Formatter\FormatterInterface $formatter) : self
Sets the formatter.
\Monolog\Formatter\FormatterInterface | $formatter |
getFormatter() : \Monolog\Formatter\FormatterInterface
Gets the formatter.
getDefaultFormatter() : \Monolog\Formatter\FormatterInterface
Gets the default formatter.