On Tue, 2004-01-27 at 22:58, Elias Ross wrote:
> Level ALWAYS = new Level(ALWAYS_INT, "INFO", 7);
Okay, looking at the JavaDoc, Level doesn't have a public constructor. Why not? At first glace it didn't make a whole lot of sense.
Level does not have a public a constructor because Level objects are flyweights. The Level class enforces the fact that there is only once and only once instance of Level.INFO, one instance of Level.DEBUG etc. within a given JVM.
-- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
