From 303d99574e5b4fe96f94fd7b27bfec67239bda60 Mon Sep 17 00:00:00 2001 From: walkor Date: Wed, 28 Feb 2024 15:02:36 +0800 Subject: [PATCH] Add files via upload --- src/config/plugin/webman/redis-queue/log.php | 32 ++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/config/plugin/webman/redis-queue/log.php diff --git a/src/config/plugin/webman/redis-queue/log.php b/src/config/plugin/webman/redis-queue/log.php new file mode 100644 index 0000000..36e12a9 --- /dev/null +++ b/src/config/plugin/webman/redis-queue/log.php @@ -0,0 +1,32 @@ + + * @copyright walkor + * @link http://www.workerman.net/ + * @license http://www.opensource.org/licenses/mit-license.php MIT License + */ + +return [ + 'default' => [ + 'handlers' => [ + [ + 'class' => Monolog\Handler\RotatingFileHandler::class, + 'constructor' => [ + runtime_path() . '/logs/redis-queue/queue.log', + 7, //$maxFiles + Monolog\Logger::DEBUG, + ], + 'formatter' => [ + 'class' => Monolog\Formatter\LineFormatter::class, + 'constructor' => [null, 'Y-m-d H:i:s', true], + ], + ] + ], + ] +];