If you want to use log4j, don't use the org.jboss.logging.Log or
org.jboss.logging.Logger logging classes. Just use the log4j classes
and there is no functionallity being thrown away. The Log4jService
is simply a bridge between the legacy JBoss logging and log4j. Its
not intended to fully support use of log4j via the legacy JBoss logging
classes.
The reason your seeing duplicate log entries is most likely because you
did not remove the legacy logging services from both jboss.jcml and
jboss-auto.jcml. Just remove the jboss-auto.jcml file.
----- Original Message -----
From: "David Jencks" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 24, 2001 7:32 AM
Subject: Re: [JBoss-user] Configuring Jboss to use Log4j ?
> Hi, the current log4j connection with jboss ignores almost all good
> features of log4j and duplicates much of its functionality. That being
> said, using the non-log4j method of getting a log ends up with the logging
> going through log4j. I hope I haven't left anything important out here, I
> haven't tried to log from within a bean. A recent 2.3 patch lets you treat
> log names ( the stuff that shows up in []) as log4j categories.
>
> 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
>
>
> On 2001.04.24 08:24:01 -0400 "Doyle, Steven" wrote:
> > Hi,
> >
> > I'm reasonably new to jboss, and I am having difficulty getting JBoss to
> > use
> > Log4j
> >
> > I have uncommented the relevant lines in jboss.conf and also removed the
> > default file & console logging.
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user