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 o
O/H Thorbjørn Ravn Andersen έγραψε:
Java House skrev den 05-07-2008 16:27:
How bad is it, to NOT use static logger;
By having the logger variable static it means it is only initialized
once when the class is loaded where as a non-static logger is
initialized each time you create a new
Great suggestion!!!
I think this will keep me happy and satisfy library's recomendations.
Thanks
O/H Thorbjørn Ravn Andersen έγραψε:
Java House skrev den 05-07-2008 18:10:
O/H Thorbjørn Ravn Andersen έγραψε:
Java House skrev den 05-07-2008 16:27:
How bad is it, to NOT use static l
Hello,
one of our projects is going open source.
It will take some time before we can publish all files but the first
thing we publish is some code related to logging.
It is a class RepositorySelectorThreadGroup which allows you to do
logging per thread group in different files. It also allow