ClassNameFormatter
in package
implements
Formatter
Returns log messages only dump the Command & Exception's class names.
Interfaces, Classes and Traits
- Formatter
- Converts incoming Commands into log messages.
Table of Contents
- $commandFailedLevel : string
- $commandReceivedLevel : string
- $commandSucceededLevel : string
- __construct() : mixed
- logCommandFailed() : void
- logCommandReceived() : void
- logCommandSucceeded() : void
Properties
$commandFailedLevel
private
string
$commandFailedLevel
$commandReceivedLevel
private
string
$commandReceivedLevel
$commandSucceededLevel
private
string
$commandSucceededLevel
Methods
__construct()
public
__construct([string $commandReceivedLevel = LogLevel::DEBUG ][, string $commandSucceededLevel = LogLevel::DEBUG ][, string $commandFailedLevel = LogLevel::ERROR ]) : mixed
Parameters
- $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