So Ceki, how would you go about trying to do what I want to do? The alternative to adding four methods to Category is having to subclass Level to include a new Level and use Category.log( Level, ... ) or subclass Category too.
Either approach will eventually end up with us writing wrappers around Log4J, which I believe is something that you have argued against in the past (http://www.qos.ch/logging/thinkAgain.html). Are we the only ones who want this functionality? On Wed, 2004-01-28 at 07:32, Ceki G�lc� wrote: > At 11:45 PM 1/27/2004 -0800, Elias Ross wrote: > >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. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
