Looking to hire Laravel developers? Try LaraJobs

union-log maintained by laravel-dev-common

Description
Laravel dev log util
Author
Last update
2017/01/12 10:35 (dev-master)
License
Downloads
28
Tags

Comments
comments powered by Disqus

#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