PSR-3 compliant console logger.
- author Kévin Dunglas
- see https://www.php-fig.org/psr/psr-3/
CloneableInstantiable
- Extends
Psr\Log\AbstractLogger - Implements
Psr\Log\LoggerInterface - Traits
Psr\Log\LoggerTrait
| Constants |
| public Symfony |
| public Symfony |
| Methods |
| public __construct(Symfony |
| public hasErrored() : bool Returns true when any messages have been logged at error levels. |
| public log( $level, $message, array $context = []) : void |
| Properties |
| private bool $errored = false |
| private array $formatLevelMap = ['emergency' => 'error', 'alert' => 'error', 'critical' => 'error', 'error' => 'error', 'warning' => 'info', 'notice' => 'info', 'info' => 'info', 'debug' => 'info'] |
| private Symfony |
| private array $verbosityLevelMap = ['emergency' => 32, 'alert' => 32, 'critical' => 32, 'error' => 32, 'warning' => 32, 'notice' => 64, 'info' => 128, 'debug' => 256] |
| Methods |
| private interpolate(string $message, array $context) : string Interpolates context values into the message placeholders. |