Explorar o código

review logging configuration

Olivier Massot hai 1 ano
pai
achega
b3ebc58a4e
Modificáronse 1 ficheiros con 10 adicións e 3 borrados
  1. 10 3
      config/packages/monolog.yaml

+ 10 - 3
config/packages/monolog.yaml

@@ -22,13 +22,19 @@ monolog:
             path: "%kernel.logs_dir%/%env(LOG_FILE_NAME)%.main.log"
             level: debug
             max_files: 3
-            channels: [php, doctrine, http_client, elastica]
+            channels: ['!security', '!doctrine', '!cron', '!event', '!deprecation', '!app']
+#        file_doctrine:
+#            type: rotating_file
+#            path: "%kernel.logs_dir%/%env(LOG_FILE_NAME)%.doctrine.log"
+#            level: debug
+#            max_files: 3
+#            channels: [doctrine]
         file_auth:
             type: rotating_file
             path: "%kernel.logs_dir%/%kernel.environment%.auth.log"
             level: debug
             max_files: 3
-            channels: security
+            channels: [security]
 
         # email en cas d'erreurs critiques, sauf erreurs 404 / 405
         #        critical:
@@ -56,7 +62,7 @@ monolog:
             level: debug
             max_files: 7
             formatter: monolog.formatter.message
-            channels: [cron]
+            channels: ['cron']
 
         # Rapport par mail
         cron_info:
@@ -82,6 +88,7 @@ monolog:
             type:           fingers_crossed
             action_level:   critical
             handler:        cron_critical_deduplicated
+            channels: ['cron']
         cron_critical_deduplicated:
             type: deduplication
             # the time in seconds during which duplicate entries are discarded (default: 60)