Symfony2 Monolog Ustawienia rejestrowania wiadomości e-mail i plików
Chcę skonfigurować Symfony2, aby wysłać mi e-mail na adrescritical
błędy, ale tylko dziennikerror
błędy poziomu. Czy zrobią to następujące ustawienia?
<code>monolog: handlers: main: type: fingers_crossed action_level: error handler: grouped grouped: type: group members: [filelog, mail] # log all errors to file filelog: type: fingers_crossed action_level: error handler: nested_stream nested_stream: type: stream path: "%kernel.logs_dir%/%kernel.environment%.log" level: debug # send me an email when we have a critical error mail: type: fingers_crossed action_level: critical handler: buffered buffered: type: buffer handler: swift swift: type: swift_mailer from_email: %mailer_sender% to_email: %error_email% subject: "[FeedStream Error]" level: debug </code>
Widziałem:http://symfony.com/doc/current/cookbook/logging/monolog_email.html Ale to nie działaerror
w ogóle, co jest przypadkiem, gdy nadal chcę logów (ale nie ma e-maila). Byłem całkiem pewien, że moja konfiguracja będzie działać, ale nie wiem wystarczająco dużo o ustawieniach monologu. Daj mi znać, czy jest to poprawne lub czy istnieje lepszy sposób.