cruxoft/logbook
Composer 安装命令:
composer require cruxoft/logbook
包简介
Simple wrapper for interaction with Monolog's Registry
README 文档
README
What is it?
Simple wrapper for interaction with Monolog's Registry system allowing legacy systems to benefit from modern logging.
For more complex Monolog setups with multiple channels and handlers a better solutions would be Monolog Cascade.
Installation
Can be installed using composer by running the following:
$ composer require cruxoft/logbook
Usage
A simple but common usage of Logbook would be as follows:
use Cruxoft\Logbook; use Monolog\Handler\StreamHandler; use Monolog\Logger; // Generate one or more handlers $handler = new StreamHandler("./sample.log", Logger::ERROR); // Add a log channel with specified handlers, optional processors can also be added Logbook::add("my_log_channel", array($handler)); // Raising a log, standard monolog methods can be used eg. error() err(), addError() Logbook::get("my_log_channel")->error("This is just an example");
统计信息
- 总下载量: 61
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2018-02-15