I try this : log4php.appender.default = LoggerAppenderFile log4php.appender.default.file = ../../log/file.log log4php.appender.default.layout = LoggerLayoutTTCC log4php.appender.email = LoggerAppenderMail log4php.appender.email.layout = LoggerLayoutTTCC log4php.appender.email.from = [email protected] log4php.appender.email.to = [email protected] log4php.appender.email.subject = Log4php test log4php.rootLogger = ERROR,DEBUG,email,appender
but the first function is priority in the second, so mail if placed in second not works (equals for file) :s Here i think the error is in rootLogger, It is a good solution to do in each function $logger = Logger::getRootLogger(); ? Christian grobmeier wrote: > >> I think the problem is this line in the functions but i m not sure: >> for mail : >> Logger::configure($_SERVER["DOCUMENT_ROOT"]."/log4php/appender_mail.properties"); >> >> for file : >> Logger::configure($_SERVER["DOCUMENT_ROOT"]."/log4php/appender_file.properties"); > > Actually you are right. If you look into this class: > http://svn.apache.org/viewvc/logging/log4php/trunk/src/main/php/Logger.php?view=markup > > you'll see that multiple configuration files are not supported yet. It > would make sense to create such a feature, but at the moment its not > there. You can only have one file. Is it possible for you to merge > these two files? > > Cheers > Christian > > -- View this message in context: http://old.nabble.com/Problem-with-utilisation-of-multiple-file_properties-tp29581278p29583038.html Sent from the Log4php - Dev mailing list archive at Nabble.com.
