PHP Class Phprest\ErrorHandler\Handler\Log

Inheritance: implements League\BooBoo\Handler\HandlerInterface
Afficher le fichier Open project: phprest/phprest Class Usage Examples

Protected Properties

Свойство Type Description
$logger Psr\Log\LoggerInterface | null

Méthodes publiques

Méthode Description
__construct ( Psr\Log\LoggerInterface $logger = null )
handle ( Exception $exception )
setLogger ( Psr\Log\LoggerInterface $logger )

Méthodes protégées

Méthode Description
buildLogMessage ( Exception $exception ) : string
handleErrorException ( ErrorException $exception ) : boolean

Method Details

__construct() public méthode

public __construct ( Psr\Log\LoggerInterface $logger = null )
$logger Psr\Log\LoggerInterface

buildLogMessage() protected méthode

protected buildLogMessage ( Exception $exception ) : string
$exception Exception
Résultat string

handle() public méthode

public handle ( Exception $exception )
$exception Exception

handleErrorException() protected méthode

protected handleErrorException ( ErrorException $exception ) : boolean
$exception ErrorException
Résultat boolean

setLogger() public méthode

public setLogger ( Psr\Log\LoggerInterface $logger )
$logger Psr\Log\LoggerInterface

Property Details

$logger protected_oe property

protected LoggerInterface,Psr\Log|null $logger
Résultat Psr\Log\LoggerInterface | null