serendipity_hq/monolog_colorful_html_line_formatter

This package is abandoned and no longer maintained. The author suggests using the serendipity_hq/monolog-html-line-formatter package instead.

Formats Monolog's log lines to make them colorful when displayed in HTML.

3.0.1 2022-01-08 18:33 UTC

README

687474703a2f2f7777772e736572656e64697069747968712e636f6d2f6173736574732f6f70656e2d736f757263652d70726f6a656374732f4c6f676f2d536572656e64697069747948512d49636f6e2d546578742d507572706c652e706e67

Serendipity HQ Monolog HTML Line Log

A Monolog Formatter to make log lines colorful depending on their level.

68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736572656e6469706974795f68712f6d6f6e6f6c6f672d68746d6c2d6c696e652d666f726d61747465722e7376673f7374796c653d666c61742d737175617265 68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265 68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f736572656e6469706974795f68712f6d6f6e6f6c6f672d68746d6c2d6c696e652d666f726d61747465723f636f6c6f723d253233383839324246267374796c653d666c61742d737175617265266c6f676f3d706870 68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d6f6e6f6c6f672d253545322e302d3333333f7374796c653d666c61742d737175617265266c6f676f3d706870

Current Status

Coverage Maintainability Rating Quality Gate Status Reliability Rating Security Rating Technical Debt Vulnerabilities

Phan PHPStan PSalm PHPUnit Composer PHP CS Fixer Rector

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!