Ok, the duplicate entries does seem to be a log4j problem. When I add
nothing to the default log_server.properties file, this line is all I need
to get my debug statements (as it should be):

        log4j.rootCategory=DEBUG, cactus

but when I add my own category lines:

        log4j.category.mypackage1 = DEBUG, cactus
        log4j.category.mypackage2 = DEBUG, cactus

then I get two entries for log statements coming from these packages.

Anyone on the log4j list? Is this a known issue? A 1.2 "feature"?

Jason

-----Original Message-----
From: Robertson, Jason 
Sent: Thursday, May 02, 2002 1:37 PM
To: 'Cactus Users List'
Subject: RE: Log4J Issues


Errr, scratch the EJBs not logging mystery. Mystery solved by finding the
particular call I was doing didn't actually have any log statements. Doh!

Jason

-----Original Message-----
From: Robertson, Jason 
Sent: Thursday, May 02, 2002 1:26 PM
To: 'Cactus Users List'
Subject: Log4J Issues


I'm having a bear of a time getting my log4j setup working with the final
1.3 that was working fine with my dev build of a couple months ago. Some of
it was me not updating my property files, but I have found a few issues:

1. On the server side, I need cactus.properties in the classpath. This is
necessary so that LogService can find the 'cactus.enableLogging = true'
property and enable the logging. The docs say this is only necessary on the
client side.

2. The docs also say that default log_client.properties and
log_server.properties files are in cactus.jar, but they are not.

3. I'm getting duplicate entries for each log line. I doubt this is a Cactus
problem, anyone else seeing this? A log4j-1.2rc1 issue?

4. I no longer see my EJB's log statements (I'm testing EJBs via
ServletRedirector). I also don't see any errors (e.g., 'please initialize
the log4j subsystem properly') - I just don't see anything. This worked fine
before. 

If anyone has ideas, please let me know!

Jason

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to