mageguide/mglogger
Composer 安装命令:
composer require mageguide/mglogger
包简介
Adds Custom Logger Functionality mageguide.log
README 文档
README
Adds Custom Logger Functionality (mageguide.log)
Usage example:
class mgLoggerExample
{
/**
* Logging instance
*/
protected $_mglogger;
/**
* Constructor injection
*/
public function __construct(
\MageGuide\Mglogger\Logger\Logger $mglogger
) {
$this->_mglogger = $mglogger;
}
/* Some function to call logger */
public function doSomething()
{
$this->_mglogger->info('Info Test');
$this->_mglogger->alert('Alert Test');
$this->_mglogger->critical('Critical Test');
$this->_mglogger->emergency('Emergency Test');
$this->_mglogger->error('Error Test');
$this->_mglogger->notice('Notice Test');
$this->_mglogger->warning('Warning Test');
}
}
统计信息
- 总下载量: 31
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2017-10-13