logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Java House <java4...@gmail.com>
Subject static logger
Date Sat, 05 Jul 2008 14:27:52 GMT
Hello,

I need to log in different files based on thread group.
So I created my own RepositorySelector which supports exactly this 
scenario but in order for this to work I cannot have
static Logger logger = Logger.getLogger("X");

because the last instance that is created is setting the logger object 
and this is not the desired result.
I  have to use
Logger logger = Logger.getLogger("X");

but I have seen in so many places recomendations against such usage.
How bad is it, to NOT use static logger;

Considering the feature request would such a solution be acceptable;

thank you


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message