Class PsrLoggerAdapter

Summary

Fully Qualified Name: Zend\Log\PsrLoggerAdapter
Extends: AbstractLogger

Description

PSR-3 logger adapter for Zend\Log\LoggerInterface

Decorates a LoggerInterface to allow it to be used anywhere a PSR-3 logger is expected.

Methods

Name Description Defined By
__construct() Constructor PsrLoggerAdapter
getLogger() Returns composed LoggerInterface instance. PsrLoggerAdapter
log() Logs with an arbitrary level. PsrLoggerAdapter

Method Details

__construct()

Constructor

Parameter Name Type Description
$logger \LoggerInterface

Returns:

getLogger()

Returns composed LoggerInterface instance.

Returns: \LoggerInterface

log()

Logs with an arbitrary level.

Parameter Name Type Description
$level mixed
$message string
$context array

Returns: null

Top