serendipity_hq/monolog-html-line-formatter

This package is abandoned and no longer maintained. No replacement package was suggested.

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

3.0.2 2022-08-02 20:34 UTC

README

Serendipity HQ Monolog HTML Line Log

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

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!