Skip to content

Commit

Permalink
调整日志相关
Browse files Browse the repository at this point in the history
  • Loading branch information
chaz6chez committed Feb 8, 2024
1 parent 9167e0d commit 1fef0a2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/config/plugin/workbunny/webman-rqueue/log.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
<?php declare(strict_types=1);

use function Workbunny\WebmanRqueue\runtime_path;

return [
'warning' => [
'handlers' => [
[
'class' => Monolog\Handler\RotatingFileHandler::class,
'constructor' => [
\runtime_path() . '/logs/workbunny/webman-rqueue/warning.log',
runtime_path() . '/logs/workbunny/webman-rqueue/warning.log',
10, //$maxFiles
Monolog\Logger::WARNING,
],
Expand All @@ -22,7 +24,7 @@
[
'class' => Monolog\Handler\RotatingFileHandler::class,
'constructor' => [
\runtime_path() . '/logs/workbunny/webman-rqueue/notice.log',
runtime_path() . '/logs/workbunny/webman-rqueue/notice.log',
10, //$maxFiles
Monolog\Logger::NOTICE,
],
Expand All @@ -38,7 +40,7 @@
[
'class' => Monolog\Handler\RotatingFileHandler::class,
'constructor' => [
\runtime_path() . '/logs/workbunny/webman-rqueue/debug.log',
runtime_path() . '/logs/workbunny/webman-rqueue/debug.log',
10, //$maxFiles
Monolog\Logger::DEBUG,
],
Expand Down

0 comments on commit 1fef0a2

Please sign in to comment.