]> Raphaël G. Git Repositories - airlibre/commitdiff
Drop %kernel.logs_dir%/%kernel.environment%.log log
authorRaphaël Gertz <git@rapsys.eu>
Fri, 1 Mar 2024 16:32:10 +0000 (17:32 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Fri, 1 Mar 2024 16:32:10 +0000 (17:32 +0100)
config/packages/monolog.yaml

index 9db7d8a7f1d3e669beb0ac44c1fa2883eba47228..bf054526d01d28b654ce4deb143828ea036f78bc 100644 (file)
@@ -7,8 +7,9 @@ when@dev:
         handlers:
             main:
                 type: stream
-                path: "%kernel.logs_dir%/%kernel.environment%.log"
+                path: php://stderr
                 level: debug
+                formatter: monolog.formatter.line
                 channels: ["!event"]
             # uncomment to get logging in your browser
             # you may have to allow bigger header sizes in your Web server configuration
@@ -50,7 +51,7 @@ when@prod:
                 type: stream
                 path: php://stderr
                 level: debug
-                formatter: monolog.formatter.json
+                formatter: monolog.formatter.line
             console:
                 type: console
                 process_psr_3_messages: false
@@ -59,4 +60,4 @@ when@prod:
                 type: stream
                 channels: [deprecation]
                 path: php://stderr
-                formatter: monolog.formatter.json
+                formatter: monolog.formatter.line