monolog.yaml 705 B

12345678910111213141516171819202122
  1. monolog:
  2. handlers:
  3. file_log:
  4. level: error
  5. type: rotating_file
  6. path: '%kernel.logs_dir%/%kernel.environment%.log'
  7. max_files: 10
  8. main:
  9. type: fingers_crossed
  10. action_level: critical
  11. handler: deduplicated
  12. deduplicated:
  13. type: deduplication
  14. handler: email_log
  15. email_log:
  16. type: symfony_mailer
  17. from_email: '%env(MAILER_FROM)%'
  18. to_email: '%env(ADMIN_EMAIL)%'
  19. subject: 'Ошибка на сайте balticrest.ru'
  20. level: critical
  21. formatter: monolog.formatter.html
  22. content_type: text/html