HandlerInterface
in
Expected behavior for a Log handler
Table of Contents
Methods
- canHandle() : bool
- Checks whether the Handler will handle logging items of this log Level.
- handle() : bool
- Handles logging the message.
- setDateFormat() : HandlerInterface
- Sets the preferred date format to use when logging.
Methods
canHandle()
Checks whether the Handler will handle logging items of this log Level.
public
canHandle(string $level) : bool
Parameters
- $level : string
Return values
boolhandle()
Handles logging the message.
public
handle(string $level, string $message) : bool
If the handler returns false, then execution of handlers will stop. Any handlers that have not run, yet, will not be run.
Parameters
- $level : string
- $message : string
Return values
boolsetDateFormat()
Sets the preferred date format to use when logging.
public
setDateFormat(string $format) : HandlerInterface
Parameters
- $format : string