Package Data | |
---|---|
Maintainer Username: | zhangkexiang |
Maintainer Contact: | zhangkexiang@qingdao1024.com (coding) |
Package Create Date: | 2016-12-24 |
Package Last Update: | 2017-01-12 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-22 03:02:57 |
Package Statistics | |
---|---|
Total Downloads: | 27 |
Monthly Downloads: | 1 |
Daily Downloads: | 1 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
#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