Explorar o código

add monolog config

Olivier Massot hai 1 ano
pai
achega
590260547a
Modificáronse 1 ficheiros con 12 adicións e 0 borrados
  1. 12 0
      config/packages/prod/monolog.yaml

+ 12 - 0
config/packages/prod/monolog.yaml

@@ -0,0 +1,12 @@
+monolog:
+    handlers:
+        main:
+            type: fingers_crossed
+            action_level: error
+            handler: nested
+            excluded_http_codes: [404, 405]
+            channels: ["!event"]
+        nested:
+            type: stream
+            path: "%kernel.logs_dir%/%kernel.environment%.log"
+            level: debug