adosaiguas/slim-analog
Composer 安装命令:
composer require adosaiguas/slim-analog
包简介
Analog logging support Slim Framework
README 文档
README
This repository adds support for logging to Analog to the Slim Framework.
Ported from the Slim-Monolog project.
Installation
AnalogWriter takes a handler in its constructor.
$logger = new \Adosaiguas\SlimAnalog\Log\AnalogWriter( \Analog\Handler\Threshold::init ( \Analog\Handler\File::init ($log_path), \Analog::DEBUG ) ); $app = new \Slim\Slim(array( 'log.writer' => $logger, ));
This example assumes you are autoloading dependencies using Composer. If you are not
using Composer, you must manually require the log writer class before instantiating it.
License
The Slim-Analog is released under the MIT public license.
统计信息
- 总下载量: 46
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-04-15