brianhenryie / color-logger
A PSR logger that prints to the console in colour. For tests.
Installs: 1 891
Dependents: 4
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- psr/log: ^1.0.0
Requires (Dev)
This package is auto-updated.
Last update: 2024-11-17 07:57:56 UTC
README
A PSR-3 logger to use during PHPUnit tests.
Prints the log level in colour, the message as normal, no time, and no context.
composer require --dev brianhenryie/color-logger
Then, presuming your classes use LoggerAwareTrait
:
$myclass = new MyClass(); $colorLogger = new \BrianHenryIE\ColorLogger\ColorLogger(); $myclass->setLogger($colorLogger);