This commit is contained in:
toom1996
2025-07-31 11:43:28 +08:00
parent 1768c86693
commit cc15942e79
5 changed files with 33 additions and 22 deletions

View File

@ -44,7 +44,7 @@ return [
],
],
],
'command-baidu-record' => [
'command-spider-baidu-record' => [
'handler' => [
'class' => Monolog\Handler\RotatingFileHandler::class,
'constructor' => [
@ -61,4 +61,21 @@ return [
],
],
],
'command-baidu-auto-push' => [
'handler' => [
'class' => Monolog\Handler\RotatingFileHandler::class,
'constructor' => [
'filename' => BASE_PATH . '/runtime/logs/baiduAutoPush.log',
'level' => Monolog\Level::Debug,
],
],
'formatter' => [
'class' => Monolog\Formatter\LineFormatter::class,
'constructor' => [
'format' => null,
'dateFormat' => 'Y-m-d H:i:s',
'allowInlineLineBreaks' => true,
],
],
],
];