Hello all, I'm trying to understand how to configure config.yml(or xml) for receive an email when the log priority is over the threshold..
I should add a Writer to the service zend.logger with a particular value for the filter. Following the documentation http://components.symfony-project.org/dependency-injection/trunk/book/05-Service-Description and the file http://trac.symfony-project.org/browser/branches/2.0/src/Symfony/Bundle/ZendBundle/Resources/config/logger.xml?rev=30721 the writer mail is /src/vendor/zend/library/Zend/Log/Writer/Mail.php I tried replacing the writer in the logger.xml and saving into the config folder... But where Configure the email address? <parameters> <parameter key="zend.logger.class">Symfony\Bundle\ZendBundle\Logger\Logger</parameter> <parameter key="zend.logger.priority" type="constant">Zend\Log\Logger::CRIT</parameter> <parameter key="zend.logger.log_errors">true</parameter> <parameter key="zend.logger.writer.debug.class">Symfony\Bundle\ZendBundle\Logger\DebugLogger</parameter> <parameter key="zend.logger.writer.filesystem.class">Zend\Log\Writer\Mail</parameter> <parameter key="zend.formatter.filesystem.class">Zend\Log\Formatter\Simple</parameter> <parameter key="zend.formatter.filesystem.format">%%timestamp%% %%priorityName%%: %%message%% </parameter> I'm little lost can you help me please... thanks bests, gd lj -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
