skip to Main Content

Set %level_name%: field width in MonologFormatterLineFormatter (PHP)

I am using the Monolog LineFormatter as follows: $output = "[%datetime%] %level_name% %channel%: %message%n"; $stream_handler->setFormatter(new LineFormatter($output)); This results in the following log lines: [2023-07-03T05:30:31.327443+02:00] DEBUG test: This is a debug message. [2023-07-03T05:30:31.327555+02:00] INFO test: This is an info level message.…

VIEW QUESTION
Back To Top
Search