Fully Qualified Name: | Zend\Log\Logger |
Implements: | LoggerInterface |
Logging messages with a stack of backends
Name | Description | Defined By |
---|---|---|
__construct() | Constructor | Logger |
__destruct() | Shutdown all writers | Logger |
addProcessor() | Add a processor to a logger | Logger |
addWriter() | Add a writer to a logger | Logger |
alert() | Logger | |
crit() | Logger | |
debug() | Logger | |
emerg() | Logger | |
err() | Logger | |
getProcessorPluginManager() | Get processor plugin manager | Logger |
getProcessors() | Get processors | Logger |
getWriterPluginManager() | Get writer plugin manager | Logger |
getWriters() | Get writers | Logger |
info() | Logger | |
log() | Add a message as a log entry | Logger |
notice() | Logger | |
processorPlugin() | Get processor instance | Logger |
registerErrorHandler() | Register logging system as an error handler to log PHP errors | Logger |
registerExceptionHandler() | Register logging system as an exception handler to log PHP exceptions | Logger |
registerFatalErrorShutdownFunction() | Register a shutdown handler to log fatal errors | Logger |
setProcessorPluginManager() | Set processor plugin manager | Logger |
setWriterPluginManager() | Set writer plugin manager | Logger |
setWriters() | Set the writers | Logger |
unregisterErrorHandler() | Unregister error handler | Logger |
unregisterExceptionHandler() | Unregister exception handler | Logger |
warn() | Logger | |
writerPlugin() | Get writer instance | Logger |
Constructor
Set options for a logger. Accepted options are:
Parameter Name | Type | Description |
---|---|---|
$options | array|\Traversable |
Returns: \Logger
Shutdown all writers
Returns: void
Add a processor to a logger
Parameter Name | Type | Description |
---|---|---|
$processor | string|\Processor\ProcessorInterface | |
$priority | int | |
$options | array|null |
Returns: \Logger
Add a writer to a logger
Parameter Name | Type | Description |
---|---|---|
$writer | string|\Writer\WriterInterface | |
$priority | int | |
$options | array|null |
Returns: \Logger
Parameter Name | Type | Description |
---|---|---|
$message | string | |
$extra | array|\Traversable |
Returns: \Logger
Parameter Name | Type | Description |
---|---|---|
$message | string | |
$extra | array|\Traversable |
Returns: \Logger
Parameter Name | Type | Description |
---|---|---|
$message | string | |
$extra | array|\Traversable |
Returns: \Logger
Parameter Name | Type | Description |
---|---|---|
$message | string | |
$extra | array|\Traversable |
Returns: \Logger
Parameter Name | Type | Description |
---|---|---|
$message | string | |
$extra | array|\Traversable |
Returns: \Logger
Get processor plugin manager
Returns: \ProcessorPluginManager
Get processors
Returns: \SplPriorityQueue
Get writer plugin manager
Returns: \WriterPluginManager
Get writers
Returns: \SplPriorityQueue
Parameter Name | Type | Description |
---|---|---|
$message | string | |
$extra | array|\Traversable |
Returns: \Logger
Add a message as a log entry
Parameter Name | Type | Description |
---|---|---|
$priority | int | |
$message | mixed | |
$extra | array|\Traversable |
Returns: \Logger
Parameter Name | Type | Description |
---|---|---|
$message | string | |
$extra | array|\Traversable |
Returns: \Logger
Get processor instance
Parameter Name | Type | Description |
---|---|---|
$name | string | |
$options | array|null |
Returns: \Processor\ProcessorInterface
Register logging system as an error handler to log PHP errors
Parameter Name | Type | Description |
---|---|---|
$logger | \Logger | |
$continueNativeHandler | bool |
Returns: mixed Returns result of set_error_handler
Register logging system as an exception handler to log PHP exceptions
Parameter Name | Type | Description |
---|---|---|
$logger | \Logger |
Returns: bool
Register a shutdown handler to log fatal errors
Parameter Name | Type | Description |
---|---|---|
$logger | \Logger |
Returns: bool
Set processor plugin manager
Parameter Name | Type | Description |
---|---|---|
$plugins | string|\ProcessorPluginManager |
Returns: \Logger
Set writer plugin manager
Parameter Name | Type | Description |
---|---|---|
$writerPlugins | \WriterPluginManager |
Returns: \Logger
Set the writers
Parameter Name | Type | Description |
---|---|---|
$writers | \SplPriorityQueue |
Returns: \Logger
Unregister error handler
Returns:
Unregister exception handler
Returns:
Parameter Name | Type | Description |
---|---|---|
$message | string | |
$extra | array|\Traversable |
Returns: \Logger
Get writer instance
Parameter Name | Type | Description |
---|---|---|
$name | string | |
$options | array|null |
Returns: \Writer\WriterInterface