serendipity_hq / monolog_colorful_html_line_formatter
Formats Monolog's log lines to make them colorful when displayed in HTML.
Installs: 1 460
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 3
Forks: 0
Open Issues: 1
Requires
- php: ^7.4|^8.0
- monolog/monolog: ^2.0
- thecodingmachine/safe: ^1.3|^2.0
Requires (Dev)
- ext-ast: *
- bamarni/composer-bin-plugin: ^1.4
- phpstan/phpstan: 1.8.2
- phpstan/phpstan-phpunit: 1.1.1
- rector/rector: 0.13.9
- roave/security-advisories: dev-master
- serendipity_hq/rector-config: ^1.0
- thecodingmachine/phpstan-safe-rule: 1.2.0
This package is auto-updated.
Last update: 2024-07-01 16:33:16 UTC
README
Serendipity HQ Monolog HTML Line Log
A Monolog Formatter to make log lines colorful depending on their level.
Current Status
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!
Install monolog-html-line-formatter via Composer
$ composer require serendipity_hq/monolog-html-line-formatter
This library follows the http://semver.org/ versioning conventions.
How to use Serendipity HQ Monolog HTML Line Formatter
// 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!