monolog.yaml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. # Voir doc/logging.md
  2. monolog:
  3. channels: ['cron']
  4. handlers:
  5. # sorties standards (stdout, stderr, console)
  6. stderr:
  7. type: stream
  8. path: php://stderr
  9. level: error
  10. channels: ["!event", "!doctrine"]
  11. console:
  12. type: console
  13. process_psr_3_messages: false
  14. level: debug
  15. channels: ["!event", "!doctrine", "!console"]
  16. # email en cas d'erreurs critiques, sauf erreurs 404 / 405
  17. # critical:
  18. # type: fingers_crossed
  19. # action_level: critical
  20. # excluded_http_codes: [ 404, 405 ]
  21. # handler: deduplicated
  22. # deduplicated:
  23. # type: deduplication
  24. # handler: mailer
  25. # mailer:
  26. # type: symfony_mailer
  27. # from_email: "process@opentalent.fr"
  28. # to_email: "exploitation@opentalent.fr"
  29. # subject: AP2I - Critical Error Occurred
  30. # level: critical
  31. # formatter: monolog.formatter.html
  32. # content_type: text/html
  33. # logging fichier
  34. file_main:
  35. type: rotating_file
  36. path: "%kernel.logs_dir%/%env(LOG_FILE_NAME)%.main.log"
  37. level: debug
  38. max_files: 3
  39. channels: [php, doctrine, http_client, elastica]
  40. file_auth:
  41. type: rotating_file
  42. path: "%kernel.logs_dir%/%kernel.environment%.auth.log"
  43. level: debug
  44. max_files: 3
  45. channels: security
  46. # logs dédiés à l'exécution des cron-jobs
  47. cron:
  48. type: group
  49. members: [cron_file]
  50. channels: cron
  51. cron_file:
  52. type: rotating_file
  53. path: "%kernel.logs_dir%/%kernel.environment%.cron.log"
  54. level: debug
  55. max_files: 7
  56. formatter: monolog.formatter.message
  57. # cron_critical:
  58. # type: fingers_crossed
  59. # action_level: critical
  60. # handler: cron_deduplicated
  61. # cron_deduplicated:
  62. # type: deduplication
  63. # # the time in seconds during which duplicate entries are discarded (default: 60)
  64. # time: 10
  65. # handler: cron_mailer
  66. # cron_mailer:
  67. # type: symfony_mailer
  68. # from_email: "process@opentalent.fr"
  69. # to_email: "exploitation@opentalent.fr"
  70. # subject: "Cron - Critical Error"
  71. # level: error
  72. # formatter: monolog.formatter.html
  73. # content_type: text/html
  74. # uncomment to get logging in your browser
  75. # you may have to allow bigger header sizes in your Web server configuration
  76. #firephp:
  77. # type: firephp
  78. # level: info
  79. #chromephp:
  80. # type: chromephp
  81. # level: info