Skip to content

Aerendir/monolog-html-line-formatter

Repository files navigation

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!


About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •