Methods
Constructor
__construct(array | \Traversable $options) : \Zend\Log\Logger
Set options for a logger. Accepted options are:
- writers: array of writers to add to this logger
- exceptionhandler: if true register this logger as exceptionhandler
- errorhandler: if true register this logger as errorhandler
Parameters
$options
array\Traversable
Exceptions
Returns
Shutdown all writers
__destruct() : void
alert()
alert(string $message, array | \Traversable $extra) : \Zend\Log\Logger
Parameters
$message
string
$extra
array\Traversable
Returns
crit()
crit(string $message, array | \Traversable $extra) : \Zend\Log\Logger
Parameters
$message
string
$extra
array\Traversable
Returns
debug()
debug(string $message, array | \Traversable $extra) : \Zend\Log\Logger
Parameters
$message
string
$extra
array\Traversable
Returns
emerg()
emerg(string $message, array | \Traversable $extra) : \Zend\Log\Logger
Parameters
$message
string
$extra
array\Traversable
Returns
err()
err(string $message, array | \Traversable $extra) : \Zend\Log\Logger
Parameters
$message
string
$extra
array\Traversable
Returns
info()
info(string $message, array | \Traversable $extra) : \Zend\Log\Logger
Parameters
$message
string
$extra
array\Traversable
Returns
Add a message as a log entry
log(int $priority, mixed $message, array | \Traversable $extra) : \Zend\Log\Logger
Parameters
$priority
int
$message
mixed
$extra
array\Traversable
Exceptions
Returns
notice()
notice(string $message, array | \Traversable $extra) : \Zend\Log\Logger
Parameters
$message
string
$extra
array\Traversable
Returns
Register logging system as an error handler to log PHP errors
registerErrorHandler(\Zend\Log\Logger $logger, bool $continueNativeHandler) : mixed
Parameters
$continueNativeHandler
bool
Exceptions
Returns
mixed
Returns result of set_error_handler
Register logging system as an exception handler to log PHP exceptions
registerExceptionHandler(\Zend\Log\Logger $logger) : bool
Parameters
Exceptions
Returns
bool
Register a shutdown handler to log fatal errors
registerFatalErrorShutdownFunction(\Zend\Log\Logger $logger) : bool
Set the writers
setWriters(\Zend\Stdlib\SplPriorityQueue $writers) : \Zend\Log\Logger
Parameters
Exceptions
Returns
Unregister error handler
unregisterErrorHandler()
Unregister exception handler
unregisterExceptionHandler()
warn()
warn(string $message, array | \Traversable $extra) : \Zend\Log\Logger
Parameters
$message
string
$extra
array\Traversable
Returns
Properties
Map native PHP errors to priority
$errorPriorityMap : array
List of priority code => priority (short) name
$priorities : array
Registered error handler
$registeredErrorHandler : bool
Registered exception handler
$registeredExceptionHandler : bool
Registered shutdown error handler
$registeredFatalErrorShutdownFunction : bool
Constants