$processors
$processors : array<mixed,callable>
Inspired on LogEntriesHandler.
Classes extending it should (in most cases) only implement write($record)
__construct(string $token, string $region = 'us', boolean $useSSL = true, string|integer $level = \Monolog\Logger::DEBUG, boolean $bubble = true)
| string | $token | Log token supplied by InsightOps |
| string | $region | Region where InsightOps account is hosted. Could be 'us' or 'eu'. |
| boolean | $useSSL | Whether or not SSL encryption should be used |
| string|integer | $level | The minimum logging level to trigger this handler |
| boolean | $bubble | Whether or not messages that are handled should bubble up the stack. |
If SSL encryption is set to true and OpenSSL is missing
close()
Closes the handler.
Ends a log cycle and frees all resources used by the handler.
Closing a Handler means flushing all buffers and freeing any open resources/handles.
Implementations have to be idempotent (i.e. it should be possible to call close several times without breakage) and ideally handlers should be able to reopen themselves on handle() after they have been closed.
This is useful at the end of a request and will be called automatically when the object is destroyed if you extend Monolog\Handler\Handler.
If you are thinking of calling this method yourself, most likely you should be calling ResettableInterface::reset instead. Have a look.
isConnected()
Check to see if the socket is currently available.
UDP might appear to be connected but might fail when writing. See http://php.net/fsockopen for details.
setFormatter(\Monolog\Formatter\FormatterInterface $formatter)
{@inheritdoc}
| \Monolog\Formatter\FormatterInterface | $formatter |