che/log-stock
最新稳定版本:1.0.0
Composer 安装命令:
composer require che/log-stock
包简介
Static Logger Manager
README 文档
README
Logging functionality is required in all classes, so it is one of situations where static code is a good choice. Now you can create more logs with your preferred logging library.
Installation
Composer package is available.
Or just clone the repository (or download versions by tags) and include the library with PSR-0 autoloader.
Usage
namespace Acme\Foo;
use Che\LogStock\LoggerManager;
class Bar
{
private $logger;
public function __construct()
{
$this->logger = LoggerManager::getLogger(__CLASS__);
}
public function doSomething($param)
{
$this->logger->info('Do something.', array('param' => $param));
//...
}
}
Integration
- Symfony2 - LogStockBundle.
Author
Kirill chEbba Chebunin iam@chebba.org.
License
LogStock is subject to the MIT license that is bundled with this package in the file LICENSE.
统计信息
- 总下载量: 44.8k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 3
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2012-03-05