You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<?php
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
// | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved.
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
// | Author: CRMEB Team <admin@crmeb.com>
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
// | 日志设置
|
|
|
|
// +----------------------------------------------------------------------
|
|
|
|
return [
|
|
|
|
// 默认日志记录通道
|
|
|
|
'default' => env('log.channel', 'file'),
|
|
|
|
// 日志记录级别
|
|
|
|
'level' => ['error', 'warning', 'info', 'fail', 'success'],
|
|
|
|
// 日志类型记录的通道 ['error'=>'email',...]
|
|
|
|
'type_channel' => [],
|
|
|
|
// 关闭全局日志写入
|
|
|
|
'close' => false,
|
|
|
|
// 全局日志处理 支持闭包
|
|
|
|
'processor' => null,
|
|
|
|
|
|
|
|
// 日志通道列表
|
|
|
|
'channels' => [
|
|
|
|
'file' => [
|
|
|
|
// 日志记录方式
|
|
|
|
'type' => 'File',
|
|
|
|
// 日志保存目录
|
|
|
|
'path' => '',
|
|
|
|
// 单文件日志写入
|
|
|
|
'single' => false,
|
|
|
|
// 独立日志级别
|
|
|
|
'apart_level' => ['error','warning','info', 'fail', 'success','sql'],
|
|
|
|
// 最大日志文件数量
|
|
|
|
'max_files' => 30,
|
|
|
|
// 使用JSON格式记录
|
|
|
|
'json' => false,
|
|
|
|
// 日志处理
|
|
|
|
'processor' => null,
|
|
|
|
// 关闭通道日志写入
|
|
|
|
'close' => false,
|
|
|
|
// 日志输出格式化
|
|
|
|
'format' => '[%s][%s] %s',
|
|
|
|
// 是否实时写入
|
|
|
|
'realtime_write' => true,
|
|
|
|
'file_size' => 1024 * 1024,
|
|
|
|
],
|
|
|
|
// 其它日志通道配置
|
|
|
|
],
|
|
|
|
|
|
|
|
];
|