123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- use think\facade\Env;
- return [
-
- 'default' => Env::get('log.channel', 'file'),
-
- 'level' => ['error', 'warning', 'fail', 'success','debug'],
-
- 'type_channel' => [],
-
- 'close' => false,
-
- 'success_log' => false,
-
- 'fail_log' => false,
-
- 'channels' => [
- 'file' => [
-
- 'type' => 'File',
-
- 'path' => app()->getRuntimePath() . 'log' . DIRECTORY_SEPARATOR,
-
- 'single' => false,
-
- 'apart_level' => ['error','warning','sql', 'fail', 'success','debug'],
-
- 'max_files' => 1000,
- ],
-
- ],
- ];
|