ClassPropertiesFormatter
in package
implements
Formatter
Formatter that includes the Command's name and properties for more detail
Interfaces, Classes and Traits
- Formatter
- Converts incoming Commands into log messages.
Table of Contents
- $commandFailedLevel : string
- $commandReceivedLevel : string
- $commandSucceededLevel : string
- $normalizer : PropertyNormalizer
- __construct() : mixed
- logCommandFailed() : void
- logCommandReceived() : void
- logCommandSucceeded() : void
Properties
$commandFailedLevel
private
string
$commandFailedLevel
$commandReceivedLevel
private
string
$commandReceivedLevel
$commandSucceededLevel
private
string
$commandSucceededLevel
$normalizer
private
PropertyNormalizer
$normalizer
Methods
__construct()
public
__construct([PropertyNormalizer $normalizer = null ][, string $commandReceivedLevel = LogLevel::DEBUG ][, string $commandSucceededLevel = LogLevel::DEBUG ][, string $commandFailedLevel = LogLevel::ERROR ]) : mixed
Parameters
- $normalizer : PropertyNormalizer = null
- $commandReceivedLevel : string = LogLevel::DEBUG
- $commandSucceededLevel : string = LogLevel::DEBUG
- $commandFailedLevel : string = LogLevel::ERROR
Return values
mixed —logCommandFailed()
public
logCommandFailed(LoggerInterface $logger, mixed $command, Exception $e) : void
Parameters
- $logger : LoggerInterface
- $command : mixed
- $e : Exception
Return values
void —logCommandReceived()
public
logCommandReceived(LoggerInterface $logger, mixed $command) : void
Parameters
- $logger : LoggerInterface
- $command : mixed
Return values
void —logCommandSucceeded()
public
logCommandSucceeded(LoggerInterface $logger, mixed $command, mixed $returnValue) : void
Parameters
- $logger : LoggerInterface
- $command : mixed
- $returnValue : mixed