You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Ceki Gülcü <ce...@qos.ch> on 2004/06/10 15:24:00 UTC

Any idea who wrote this?

Hello,

Any idea who wrote this?

   http://wiki.apache.org/logging-log4j/Log4JStatic?action=show

The last sentence is is actually quite misleading. In

Logger x = Logger.getLogger("wombat");
Logger y = Logger.getLogger("wombat");

both x and y will refer to the exact same logger instance. Thus, declaring 
the logger object does not result in a gain of the space occupied by a new 
logger object but only in a gain of the space occupied by a *reference* to 
a logger instance.



-- 
Ceki Gülcü

      For log4j documentation consider "The complete log4j manual"
      ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp  



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