PHP Class Kraken\Log\Logger

Inheritance: implements Kraken\Log\LoggerInterface, use trait Kraken\Util\Enum\EnumTrait
Afficher le fichier Open project: kraken-php/framework

Protected Properties

Свойство Type Description
$logger LoggerWrapper

Méthodes publiques

Méthode Description
__construct ( string $name, Kraken\Log\Handler\HandlerInterface[] $loggers = [], callable[] $processors = [] )
__destruct ( )
alert ( string $message, array $context = [] ) : boolean Add a log record at the ALERT level.
critical ( string $message, array $context = [] ) : boolean Add a log record at the CRITICAL level.
debug ( string $message, array $context = [] ) : boolean Add a log record at the DEBUG level.
emergency ( string $message, array $context = [] ) : boolean Add a log record at the EMERGENCY level.
error ( string $message, array $context = [] ) : boolean Add a log record at the ERROR level.
getHandlers ( )
getLevelName ( $level )
getLevels ( )
getName ( )
getProcessors ( )
info ( string $message, array $context = [] ) : boolean Add a log record at the INFO level.
isHandling ( $level )
log ( integer | string $level, string $message, array $context = [] ) : boolean Add a log record at an arbitrary level.
notice ( string $message, array $context = [] ) : boolean Add a log record at the NOTICE level.
popHandler ( )
popProcessor ( )
pushHandler ( Kraken\Log\Handler\HandlerInterface $handler )
pushProcessor ( callable $callback )
warning ( string $message, array $context = [] ) : boolean Add a log record at the WARNING level.

Méthodes protégées

Méthode Description
createWrapper ( string $name, Kraken\Log\Handler\HandlerInterface[] $loggers, callable[] $processors ) : LoggerWrapper

Method Details

__construct() public méthode

public __construct ( string $name, Kraken\Log\Handler\HandlerInterface[] $loggers = [], callable[] $processors = [] )
$name string
$loggers Kraken\Log\Handler\HandlerInterface[]
$processors callable[]

__destruct() public méthode

public __destruct ( )

alert() public méthode

This method allows for compatibility with common interfaces.
public alert ( string $message, array $context = [] ) : boolean
$message string
$context array
Résultat boolean

createWrapper() protected méthode

protected createWrapper ( string $name, Kraken\Log\Handler\HandlerInterface[] $loggers, callable[] $processors ) : LoggerWrapper
$name string
$loggers Kraken\Log\Handler\HandlerInterface[]
$processors callable[]
Résultat LoggerWrapper

critical() public méthode

This method allows for compatibility with common interfaces.
public critical ( string $message, array $context = [] ) : boolean
$message string
$context array
Résultat boolean

debug() public méthode

This method allows for compatibility with common interfaces.
public debug ( string $message, array $context = [] ) : boolean
$message string
$context array
Résultat boolean

emergency() public méthode

This method allows for compatibility with common interfaces.
public emergency ( string $message, array $context = [] ) : boolean
$message string
$context array
Résultat boolean

error() public méthode

This method allows for compatibility with common interfaces.
public error ( string $message, array $context = [] ) : boolean
$message string
$context array
Résultat boolean

getHandlers() public méthode

public getHandlers ( )

getLevelName() public méthode

public getLevelName ( $level )

getLevels() public méthode

public getLevels ( )

getName() public méthode

public getName ( )

getProcessors() public méthode

public getProcessors ( )

info() public méthode

This method allows for compatibility with common interfaces.
public info ( string $message, array $context = [] ) : boolean
$message string
$context array
Résultat boolean

isHandling() public méthode

public isHandling ( $level )

log() public méthode

This method allows for compatibility with common interfaces.
public log ( integer | string $level, string $message, array $context = [] ) : boolean
$level integer | string
$message string
$context array
Résultat boolean

notice() public méthode

This method allows for compatibility with common interfaces.
public notice ( string $message, array $context = [] ) : boolean
$message string
$context array
Résultat boolean

popHandler() public méthode

public popHandler ( )

popProcessor() public méthode

public popProcessor ( )

pushHandler() public méthode

public pushHandler ( Kraken\Log\Handler\HandlerInterface $handler )
$handler Kraken\Log\Handler\HandlerInterface

pushProcessor() public méthode

public pushProcessor ( callable $callback )
$callback callable

warning() public méthode

This method allows for compatibility with common interfaces.
public warning ( string $message, array $context = [] ) : boolean
$message string
$context array
Résultat boolean

Property Details

$logger protected_oe property

protected LoggerWrapper,Kraken\Log $logger
Résultat LoggerWrapper