增加配置同步

This commit is contained in:
Anyon 2020-01-09 16:44:22 +08:00
parent f3eef0d101
commit 44807f2ae4
3 changed files with 9 additions and 4 deletions

View File

@ -33,11 +33,17 @@ return [
'path' => '',
// 单文件日志写入
'single' => true,
// 指定日志类型
'level' => ['error', 'alert', 'sql'],
// 独立日志级别
'apart_level' => ['error', 'sql'],
// 每个文件大小 ( 10兆 )
'file_size' => 1024 * 1024 * 10,
// 日志日期格式
'time_format' => 'Y-m-d H:i:s',
// 最大日志文件数量
'max_files' => 200,
// 使用JSON格式记录php
'max_files' => 100,
// 使用JSON格式记录
'json' => false,
// 日志处理
'processor' => null,

View File

@ -14,7 +14,6 @@
// +----------------------------------------------------------------------
return [
// 'name' => 's' . substr(md5(__DIR__), -8),
'type' => 'file',
'store' => null,
'expire' => 1800,

View File

@ -38,7 +38,7 @@ return [
'taglib_end' => '}',
// 定义模板替换字符串
'tpl_replace_string' => [
'__APP__' => rtrim(url('@'), '\\/'),
'__APP__' => rtrim(url('@')->build(), '\\/'),
'__ROOT__' => rtrim(dirname(request()->basefile()), '\\/'),
'__PUBLIC__' => rtrim(dirname(request()->basefile(true)), '\\/'),
],