PHP Interface Kraken\Log\LoggerInterface

Inheritance: extends Kraken\Util\Enum\EnumInterface, extends Psr\Log\LoggerInterface
Show file Open project: kraken-php/framework Interface Usage Examples

Public Methods

Method Description
getHandlers ( ) : Kraken\Log\Handler\HandlerInterface[] Get all handlers from the stack.
getLevelName ( integer $level ) : string | null Get the name of the logging level.
getLevels ( ) : int[] Get all supported logging levels.
getName ( ) : string Return name of logger.
getProcessors ( ) : callable[] Get all processors from the stack.
isHandling ( integer $level ) : boolean Check whether the Logger has a handler that listens on the given level.
popHandler ( ) : Kraken\Log\Handler\HandlerInterface | null Pop handler from the stack.
popProcessor ( ) : callable | null Removes the processor on top of the stack and returns it.
pushHandler ( Kraken\Log\Handler\HandlerInterface $handler ) Push handler on to the stack.
pushProcessor ( callable $callback ) Add processor on to the stack.

Method Details

getHandlers() public method

Get all handlers from the stack.
public getHandlers ( ) : Kraken\Log\Handler\HandlerInterface[]
return Kraken\Log\Handler\HandlerInterface[]

getLevelName() public method

Get the name of the logging level.
public getLevelName ( integer $level ) : string | null
$level integer
return string | null

getLevels() public method

Get all supported logging levels.
public getLevels ( ) : int[]
return int[]

getName() public method

Return name of logger.
public getName ( ) : string
return string

getProcessors() public method

Get all processors from the stack.
public getProcessors ( ) : callable[]
return callable[]

isHandling() public method

Check whether the Logger has a handler that listens on the given level.
public isHandling ( integer $level ) : boolean
$level integer
return boolean

popHandler() public method

Pop handler from the stack.
public popHandler ( ) : Kraken\Log\Handler\HandlerInterface | null
return Kraken\Log\Handler\HandlerInterface | null

popProcessor() public method

Removes the processor on top of the stack and returns it.
public popProcessor ( ) : callable | null
return callable | null

pushHandler() public method

Push handler on to the stack.
public pushHandler ( Kraken\Log\Handler\HandlerInterface $handler )
$handler Kraken\Log\Handler\HandlerInterface

pushProcessor() public method

Add processor on to the stack.
public pushProcessor ( callable $callback )
$callback callable