Hi,
Well I see you already fixed this, I am very glad, thanks.

How about making Log.createLog return LogToCategory instances by default? 
Wouldn't this make all of jboss work with the new class automatically?  Or
did you find another way to do this?

Thanks
David Jencks
On 2001.04.24 22:43:08 -0400 David Jencks wrote:
Hi,
I would rather not use this class, but I don't know how not to.  This is
how all the jboss code I have seen does logging, and I have found it to
work. Is there another way?  It looks to me like the log4j service is
assuming that logging is coming from a org.jboss.logging.Log object through
Logger through mbean notification to log4jservice and finally at long last
to log4j.  Seems awfully inefficient.  Am I mistaken that this is how
logging currently works?  If you do something else are you tied to log4j?
Is there a plan to replace the current logging framework with just plain
log4j without the duplicated functionality?

Thanks
David Jencks

On 2001.04.24 18:38:23 -0400 Scott M Stark wrote:
> Why are you suggesting people use the org.jboss.logging.Log class?
> This should not be used if you have configured log4j.
> 
> ----- Original Message ----- 
> From: "David Jencks" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, April 24, 2001 2:33 PM
> Subject: RE: [JBoss-user] Configuring Jboss to use Log4j ?
> 
> 
> > Hi,
> > 
> > Please try code along the lines of what I suggested in my first reply
> > 
> > I repeat
> > the log
> > 
> > org.jboss.logging.Log log;
> > 
> > when you create your object
> > 
> > log = Log.createLog("myname");
> > 
> > 
> > when you want to log something
> > 
> > Log.setLog(log);  //duplicates NDC.push(source) log4j functionality
> > 
> > log.log("my message");
> > 
> > Log.unsetLog(log); //duplicates NDC.pop() log4j  functionality
> > 
> > 
> 
> 
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to