Fully Qualified Name: | Zend\Log\PsrLoggerAdapter |
Extends: | AbstractLogger |
PSR-3 logger adapter for Zend\Log\LoggerInterface
Decorates a LoggerInterface to allow it to be used anywhere a PSR-3 logger is expected.
Name | Description | Defined By |
---|---|---|
__construct() | Constructor | PsrLoggerAdapter |
getLogger() | Returns composed LoggerInterface instance. | PsrLoggerAdapter |
log() | Logs with an arbitrary level. | PsrLoggerAdapter |
Constructor
Parameter Name | Type | Description |
---|---|---|
$logger | \LoggerInterface |
Returns:
Returns composed LoggerInterface instance.
Returns: \LoggerInterface
Logs with an arbitrary level.
Parameter Name | Type | Description |
---|---|---|
$level | mixed | |
$message | string | |
$context | array |
Returns: null