亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

Laravel stderr channel logging on Docker not working properly
P粉752826008
P粉752826008 2023-12-13 10:57:19
0
1
625

I have a simple application using php Laravel and configured the following channels for logging:

'stderr' => [
            'driver' => 'monolog',
            'level' => env('LOG_LEVEL', 'debug'),
            'handler' => StreamHandler::class,
            'formatter' => env('LOG_STDERR_FORMATTER'),
            'with' => [
                'stream' => 'php://stderr',
            ],
        ],

I have ensured that the environment variables LOG_CHANNEL and LOG_LEVEL are configured correctly. Although docker doesn't output anything. Can anyone give me more feedback on how to debug this? Thank you so much

P粉752826008
P粉752826008

reply all(1)
P粉709644700

I'm using this and everything works fine:

'stderr' => [
            'driver' => 'monolog',
            'level' => env('LOG_LEVEL', 'debug'),
            'handler' => StreamHandler::class,
            'formatter' => env('LOG_STDERR_FORMATTER'),
            'with' => [
                'stream' => 'php://stdout',
                'level' => 'debug',
            ],
        ],

Hope you find a solution!

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template