serendipity_hq/monolog-html-line-formatter
最新稳定版本:4.0.1
Composer 安装命令:
composer require serendipity_hq/monolog-html-line-formatter
包简介
Formats Monolog's log lines to make them colorful when displayed in HTML.
README 文档
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 \Monolog\Logger('The name of your Logger'); try { $handler = new TheHandlerYouChose($logFile, \Monolog\Level::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!
统计信息
- 总下载量: 19.43k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-08-31