Skip to content

Commit

Permalink
[yggdrasil-api] log rotation for verbose log (#201)
Browse files Browse the repository at this point in the history
Co-authored-by: Pig Fang <[email protected]>
  • Loading branch information
tnqzh123 and g-plane authored Jan 19, 2024
1 parent d8f0d00 commit 65c01d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/yggdrasil-api/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
return function (Filter $filter, Dispatcher $events) {
if (env('YGG_VERBOSE_LOG')) {
config(['logging.channels.ygg' => [
'driver' => 'single',
'driver' => 'daily',
'days' => env('YGG_VERBOSE_LOG_DAYS'),
'path' => storage_path('logs/yggdrasil.log'),
]]);
} else {
Expand Down

0 comments on commit 65c01d2

Please sign in to comment.