logging-log4php-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zalex06 <zale...@hotmail.fr>
Subject Re: Problem with utilisation of multiple file_properties
Date Tue, 31 Aug 2010 20:03:19 GMT

Ok, but unfortunately I have until used this solution (see my first post) :(
An other idea ?



Christian grobmeier wrote:
> 
>> 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->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.


Mime
View raw message