mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-05 19:41:44 +08:00
增加配置同步
This commit is contained in:
parent
f3eef0d101
commit
44807f2ae4
@ -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,
|
||||
|
@ -14,7 +14,6 @@
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
return [
|
||||
// 'name' => 's' . substr(md5(__DIR__), -8),
|
||||
'type' => 'file',
|
||||
'store' => null,
|
||||
'expire' => 1800,
|
||||
|
@ -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)), '\\/'),
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user