i have set it to false for that particular Logger instance.
On Wed, 2003-06-11 at 15:22, Ebersole, Steven wrote:
Make sure you dont have an additivity issue.
-Original Message-
From: Vivek Kapadekar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11,
hi
This might be a basic question. How do I specify a different appender
per logger, the way we specify log levels for individual loggers?
Thanks
--Viv
In props:
##
log4j.rootLogger=DEBUG,appender1
log4j.logger.specificLogger1=DEBUG,appender2
log4j.logger.specificLogger2=DEBUG,appender3
log4j.appender.appender1=...
log4j.appender.appender2=...
log4j.appender.appender3=...
In XML:
Hi
The name of the appender I want to use is SOAPAppender and I add it
programmatically to the logger instances.
log4j.rootLogger=debug
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
# Pattern to output the caller's file name
To which loggers?
-Original Message-
From: Vivek Kapadekar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 6:39 PM
To: Log4J Users List
Subject: RE: Duplicate Triggering of custom appender.
Hi
The name of the appender I want to use is SOAPAppender and I add it
programmatically
Ok. I tried specifying the appender in the lo4j.properties. I have set
the additivity flag to false. Still I get duplicate hits to my appender
...Do I need to implement the close() method in my appender. Does that
make a diference...?
--Viv
On Wed, 2003-06-11 at 16:36, Ebersole, Steven wrote:
to SYSTEM, AUDIT and TRANSACTION
On Wed, 2003-06-11 at 16:41, Ebersole, Steven wrote:
To which loggers?
-Original Message-
From: Vivek Kapadekar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 6:39 PM
To: Log4J Users List
Subject: RE: Duplicate
Try the following just to see if you still get the same issue (and do _not_
programatically add the appender):
##
# Define loggers
##
log4j.rootLogger=debug,
Yup that worked, I think i had not set the additivity flag right..
Thanks for your help
--Viv
On Wed, 2003-06-11 at 16:54, Ebersole, Steven wrote:
Try the following just to see if you still get the same issue (and do _not_
programatically add the appender):
No problem
-Original Message-
From: Vivek Kapadekar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 7:17 PM
To: Log4J Users List
Subject: RE: Duplicate Triggering of custom appender.
Yup that worked, I think i had not set the additivity flag right..
Thanks for your help
--Viv
similarly, how do I add ( attach ) appenders to a AsyncAppender in a
props file?
I have this defined in the props file and I want to append by own
appender SOAPAppender to this.
log4j.appender.A1=org.apache.log4j.AsyncAppender
Thanks
-Viv
On Wed, 2003-06-11 at 16:36, Ebersole, Steven wrote:
11 matches
Mail list logo