浏览代码

Add log for install

Visman 3 年之前
父节点
当前提交
071f1a4cb5
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      app/config/install.php

+ 8 - 0
app/config/install.php

@@ -100,6 +100,14 @@ return [
             'calss'  => \ForkBB\Core\HTMLCleaner::class,
             'config' => '%DIR_APP%/config/jevix.default.php',
         ],
+        'Log'       => [
+            'class'  => \ForkBB\Core\Log::class,
+            'config' => [
+                'path'       => '%DIR_LOG%/{Y-m-d}.log',
+                'lineFormat' => "\\%datetime\\% [\\%level_name\\%] \\%message\\%\t\\%context\\%\n",
+                'timeFormat' => 'Y-m-d H:i:s',
+            ],
+        ],
 
         'config'     => '@ConfigModel:install',
         'users'      => \ForkBB\Models\User\Users::class,