A Monolog Formatter to make log lines colorful depending on their level.
Do you like this library?
LEAVE A ★
or run
composer global require symfony/thanks && composer thanks
to say thank you to all libraries you use in your current project, this included!
$ composer require serendipity_hq/monolog-html-line-formatter
This library follows the http://semver.org/ versioning conventions.
// Crate a Monolog Logger
$logger = new Logger('The name of your Logger');
try {
$handler = new TheHandlerYouChose($logFile, Logger::DEBUG);
$handler->setFormatter(new MonologHtmlLineFormatter());
} catch(\Throwable $e) {
throw $e;
}
// Now add some handlers
$logger->pushHandler($handler);
Do you like this library?
LEAVE A ★
or run
composer global require symfony/thanks && composer thanks
to say thank you to all libraries you use in your current project, this included!