I'm not getting what your confusion is. We are not getting a 'static' log4j Category, we are getting the log4j Category for name. If your asking why we don't also keep a map of name to Logger instances the reason is that Loggers are rarely created and I don't see the point for yet another cache. If that is not what your asking show how you would change Logger.
----- Original Message ----- From: "Christian Riege" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, December 28, 2001 11:03 AM Subject: Re: [JBoss-dev] org.jboss.logging.Logger > Hi, > > On Fri, 2001-12-28 at 18:52, Scott M Stark wrote: > > Making this a singleton would require that all loggers > > used the same category name and this is not what we want. > > I'm still not getting it. In the constructor, we are getting a static > log4j Category anyways for the given name: > > log = Category.getInstance(name); > > I don't see how different loggers should be able to use different > category names with a constructor like this. Wading through the code via > 'grep getCategory' doesn't show any use of this either; could you give > me a pointer on where this behaviour is actually used/implemented? > > Best regards, > Christian > > > > _______________________________________________ > Jboss-development mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development > _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
