seaslog-extension seaslog-module
seaslog扩展日志记录实现
chenhakim/seaslog-module
seaslog扩展日志记录实现
- Monday, June 26, 2017
- by chenhakim
- Repository
- 0 Watchers
- 0 Stars
- 124 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
seaslog模块
安装
打开 composer.json
找到或创建 repositories
key,添加VCS资源库。, (*1)
// ...
"repositories": [
// ...
{
"type": "vcs",
"url": "https://github.com/chenhakim/seaslog-module.git"
}
],
// ...
添加依赖包。, (*2)
composer require chenhakim/seaslog-module dev-master
使用
1、配置
在项目中定义全局变量, (*3)
defined('SEASLOG_PATH') or define('SEASLOG_PATH', '/home/www/log/项目名称/'); // 项目日志目录
2、后台调用, (*4)
\Module\SeasLog\SeasLog::record($level, $message, $extra = array());
dev-master
9999999-dev
seaslog扩展日志记录实现
Sources
Download
Apache-2.0
by
chenhakim
log
php
seaslog