Re: Problem with utilisation of multiple file_properties

2010-09-01 Thread Christian Grobmeier
gt;> function blub() { >>   $logger = Logger::getRootLogger(); >>   $logger->doSomething(); >> } >> >> function blub2() { >>   $logger = Logger::getRootLogger(); >>   $logger->doSomething(); >> } >> >> Did that help you? >> Christian >> >> > > -- > View this message in context: > http://old.nabble.com/Problem-with-utilisation-of-multiple-file_properties-tp29581278p29587118.html > Sent from the Log4php - Dev mailing list archive at Nabble.com. > >

Re: Problem with utilisation of multiple file_properties

2010-08-31 Thread zalex06
gger->doSomething(); > } > > Did that help you? > Christian > > -- View this message in context: http://old.nabble.com/Problem-with-utilisation-of-multiple-file_properties-tp29581278p29587118.html Sent from the Log4php - Dev mailing list archive at Nabble.com.

Re: Problem with utilisation of multiple file_properties

2010-08-31 Thread Christian Grobmeier
> It is a good solution to do in each function $logger = > Logger::getRootLogger(); ? thats ok. Logger::getRootLogger will always return the same logger instance. So you can do something like that: Logger:configure(...); function blub() { $logger = Logger::getRootLogger(); $logger->doSomethi

Re: Problem with utilisation of multiple file_properties

2010-08-31 Thread zalex06
ain/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? > > Cheer

Re: Problem with utilisation of multiple file_properties

2010-08-31 Thread Christian Grobmeier
> 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 l

Re: Problem with utilisation of multiple file_properties

2010-08-31 Thread zalex06
t;> log4php.appender.email.to = '*...@***' >> log4php.appender.email.subject = "Log4php test" > > I cannot access the docs at the moment, but if you could try - that > might already solve your problem > If not, please send over the complete message. >

Re: Problem with utilisation of multiple file_properties

2010-08-31 Thread Christian Grobmeier
Hi can you try to put these into quotes? > log4php.appender.email.from = '*...@***' > log4php.appender.email.to = '*...@***' > log4php.appender.email.subject = "Log4php test" I cannot access the docs at the moment, but if you could try - that might already solve your problem If not, please send o

Problem with utilisation of multiple file_properties

2010-08-31 Thread zalex06
t;email"); $loggerMail->setFrom($from); $loggerMail->setTo($to); $loggerMail->setSubject($subject); $logger->error($userMessage); } I have the message setFrom is use in a non-object It's the sames thing if i put usersErrors($userMessage); after mailErrors i have the message for se