monolog.yaml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. # Voir doc/logging.md
  2. monolog:
  3. handlers:
  4. # sorties standards (stdout, stderr, console)
  5. stderr:
  6. type: stream
  7. path: php://stderr
  8. level: error
  9. channels: ["!event", "!doctrine"]
  10. console:
  11. type: console
  12. process_psr_3_messages: false
  13. level: debug
  14. channels: ["!event", "!doctrine", "!console"]
  15. # email en cas d'erreurs critiques, sauf erreurs 404 / 405
  16. # critical:
  17. # type: fingers_crossed
  18. # action_level: critical
  19. # excluded_http_codes: [ 404, 405 ]
  20. # handler: deduplicated
  21. # deduplicated:
  22. # type: deduplication
  23. # handler: mailer
  24. # mailer:
  25. # type: swift_mailer
  26. # from_email: "process@opentalent.fr"
  27. # to_email: "exploitation@opentalent.fr"
  28. # subject: AP2I - Critical Error Occurred
  29. # level: critical
  30. # formatter: monolog.formatter.html
  31. # content_type: text/html
  32. # logging fichier
  33. file_main:
  34. type: rotating_file
  35. path: "%kernel.logs_dir%/%kernel.environment%/%kernel.environment%.main.log"
  36. level: debug
  37. max_files: 3
  38. channels: [php, doctrine, http_client, elastica]
  39. file_auth:
  40. type: rotating_file
  41. path: "%kernel.logs_dir%/%kernel.environment%.auth.log"
  42. level: debug
  43. max_files: 3
  44. channels: security
  45. # logs spécifiques à certains process
  46. cron:
  47. type: group
  48. members: [cron_file]
  49. cron_file:
  50. type: rotating_file
  51. path: "%kernel.logs_dir%/%kernel.environment%.cron.log"
  52. level: debug
  53. max_files: 7
  54. channels: cron
  55. # cron_critical:
  56. # type: fingers_crossed
  57. # action_level: critical
  58. # handler: cron_swift
  59. # cron_swift:
  60. # type: swift_mailer
  61. # from_email: "process@opentalent.fr"
  62. # to_email: "exploitation@opentalent.fr"
  63. # subject: Critical Error Occurred
  64. # level: error
  65. # formatter: monolog.formatter.html
  66. # content_type: text/html
  67. # logs spécifiques au service de synchro dolibarr
  68. dolibarrsync:
  69. type: rotating_file
  70. path: "%kernel.logs_dir%/%kernel.environment%.dolibarrsync.log"
  71. level: debug
  72. max_files: 7
  73. channels: dolibarrsync
  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