laravel-dev-common / union-log
Laravel dev log util
Installs: 27
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:util
Requires
- php: >=5.5.9
- laravel-dev-common/union-config: *
- monolog/monolog: ~1.11
This package is not auto-updated.
Last update: 2024-12-21 21:08:48 UTC
README
#union-log 使用方法:
laravel5.1结构中 在config文件夹创建union.php
example:
return [ 'log'=>[ 'sms'=>'/tmp/laravel.log' ]
];
使用:
use Union\Log;
//异常情况 没有配置sendsms
Log::sendsms_info('success','daily');
Log::sendsms_info('success');//sendsms 配置不存在则不进行日志打印
//正常情况
Log::sms_info('asdf');//单个info日志
Log::sms_info('asdf','daily');//每日的info日志
Log::sms_error('asdf','daily');// 每日的错误日志
Log::sms_info('asdf','daily','error');// 每日的错误日志 限制'error'一下不打印 所以该信息不打印
//debug\info\notice\warning\error\critical\alert\emergency