Anyone familiar with Log4j?
Posted on 2004-10-15
I'm trying to learn to use log4j but I'm wondering about something.
Here's an excerpt from the manual:
For example, in
Logger x = Logger.getLogger("wombat");
Logger y = Logger.getLogger("wombat");
x and y refer to exactly the same logger object.
Do you think this kind of thing is safe to use in web applications? I don't quite understand how this works. I mean is it creating this "wombat" object unique to the application or to the VM?
If to the VM then won't this cause problems? Or at least performance problems?