Logging messages with a stack of backends
Constructor
Set options for an 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: | array|Traversable – |
---|---|
Return type: | Logger |
Throws : | ExceptionInvalidArgumentException |
Get writer plugin manager
Return type: | WriterPluginManager |
---|
Set writer plugin manager
Parameters: | string|WriterPluginManager – |
---|---|
Return type: | Logger |
Throws : | ExceptionInvalidArgumentException |
Get writer instance
Parameters: |
|
---|---|
Return type: | WriterWriterInterface |
Add a writer to a logger
Parameters: |
|
---|---|
Return type: | Logger |
Throws : | ExceptionInvalidArgumentException |
Set the writers
Parameters: | SplPriorityQueue – |
---|---|
Return type: | Logger |
Throws : | ExceptionInvalidArgumentException |
Get processor plugin manager
Return type: | ProcessorPluginManager |
---|
Set processor plugin manager
Parameters: | string|ProcessorPluginManager – |
---|---|
Return type: | Logger |
Throws : | ExceptionInvalidArgumentException |
Get processor instance
Parameters: |
|
---|---|
Return type: | ProcessorProcessorInterface |
Add a processor to a logger
Parameters: |
|
---|---|
Return type: | Logger |
Throws : | ExceptionInvalidArgumentException |
Add a message as a log entry
Parameters: |
|
---|---|
Return type: | Logger |
Throws : | ExceptionInvalidArgumentException if message can’t be cast to string |
Throws : | ExceptionInvalidArgumentException if extra can’t be iterated over |
Throws : | ExceptionRuntimeException if no log writer specified |
@param string $message
Parameters: | array|Traversable – |
---|---|
Return type: | Logger |
@param string $message
Parameters: | array|Traversable – |
---|---|
Return type: | Logger |
@param string $message
Parameters: | array|Traversable – |
---|---|
Return type: | Logger |
@param string $message
Parameters: | array|Traversable – |
---|---|
Return type: | Logger |
@param string $message
Parameters: | array|Traversable – |
---|---|
Return type: | Logger |
@param string $message
Parameters: | array|Traversable – |
---|---|
Return type: | Logger |
@param string $message
Parameters: | array|Traversable – |
---|---|
Return type: | Logger |
@param string $message
Parameters: | array|Traversable – |
---|---|
Return type: | Logger |
Register logging system as an error handler to log PHP errors
Parameters: |
|
---|---|
Return type: | mixed Returns result of set_error_handler |
Throws : | ExceptionInvalidArgumentException if logger is null |