class MonologErrorHandler implements ErrorHandler

Methods

$this
setLogger(LoggerInterface $logger) deprecated

Set the PSR-3 logger to send errors & exceptions to. Will overwrite any previously configured loggers

LoggerInterface
getLogger() deprecated

Get the first registered PSR-3 logger to send errors & exceptions to

$this
pushLogger(LoggerInterface $logger)

Adds a PSR-3 logger to send messages to, to the end of the stack

LoggerInterface[]
getLoggers()

Returns the stack of PSR-3 loggers

$this
setLoggers(array $loggers)

Set the PSR-3 loggers (overwrites any previously configured values)

start()

Register and begin handling errors with this handler

Details

at line 25
$this setLogger(LoggerInterface $logger) deprecated

deprecated 4.4.0:5.0.0 Use pushLogger() instead

Set the PSR-3 logger to send errors & exceptions to. Will overwrite any previously configured loggers

Parameters

LoggerInterface $logger

Return Value

$this

at line 39
LoggerInterface getLogger() deprecated

deprecated 4.4.0:5.0.0 Use getLoggers() instead

Get the first registered PSR-3 logger to send errors & exceptions to

Return Value

LoggerInterface

at line 52
$this pushLogger(LoggerInterface $logger)

Adds a PSR-3 logger to send messages to, to the end of the stack

Parameters

LoggerInterface $logger

Return Value

$this

at line 63
LoggerInterface[] getLoggers()

Returns the stack of PSR-3 loggers

Return Value

LoggerInterface[]

at line 74
$this setLoggers(array $loggers)

Set the PSR-3 loggers (overwrites any previously configured values)

Parameters

array $loggers

Return Value

$this

at line 85
start()

Register and begin handling errors with this handler