DelegatingPsrLogger
Extends AbstractLoggerDelegating logger which delegates log messages received from the PSR-3 interface to the Joomla! Log object.
| since |
3.8.0 |
|---|---|
| package |
Joomla CMS |
Methods
__construct
Constructor.
__construct(\Joomla\CMS\Log\Log logger) : mixed
| since |
3.8.0 |
|---|
Arguments
- logger
\Joomla\CMS\Log\LogThe Log instance to delegate messages to.
Response
mixed
log
Logs with an arbitrary level.
log(mixed level, string message, array context = array()) : void
| since |
3.8.0 |
|---|---|
| throws |
|
Arguments
- level
mixedThe log level.- message
stringThe log message.- context
arrayAdditional message context.
Properties
logger
The Log instance to delegate messages to.
| since |
3.8.0 |
|---|
Type(s)
\Joomla\CMS\Log\Log
priorityMap
Mapping array to map a PSR-3 level to a Joomla priority.
| since |
3.8.0 |
|---|
Type(s)
array