Re: dynamically config the appender mail

2010-05-18 Thread Miquel Canes
Hi, This code is working well for me: $logger = Logger::getRootLogger(); $layout = new LoggerLayoutPattern(""); $layout->setConversionPattern("[%p] %t %c - %m%n"); $appender = new LoggerAppenderMail(); $appender->setLayout($layout); $appender->setFrom("y...@yyy.com"); $appender->setTo("x...@.c

dynamically config the appender mail

2010-05-18 Thread PriyaPrakash
Hi, Now i am trying to append the LoggerAppenderMail(),when i execute the code it process successfully without any error but the mail is not received by the receiver,the code is, $this->appenderMail = new LoggerAppenderMail(); $this->layourMail