class MonologErrorHandler implements ErrorHandler (View source)

Methods

public
$this
pushLogger(LoggerInterface $logger)

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

public
LoggerInterface[]
getLoggers()

Returns the stack of PSR-3 loggers

public
$this
setLoggers(array $loggers)

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

public
start()

Register and begin handling errors with this handler

Details

$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

LoggerInterface[] getLoggers()

Returns the stack of PSR-3 loggers

Return Value

LoggerInterface[]

$this setLoggers(array $loggers)

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

Parameters

array $loggers

Return Value

$this

start()

Register and begin handling errors with this handler