Howdy,
How are you configuring log4j?  Do you ever call
BasicConfigurator.configure()?  If so, don't call it.  Instead use a
Property or DOM configurator and don't include a console appender in the
configuration ;)

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Keith Hatton [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, February 20, 2003 8:25 AM
>To: [EMAIL PROTECTED]
>Subject: How to avoid BasicConfigurator?
>
>I tried searching the archives as I'm sure this must have been
discussed
>before but I couldn't find an answer so ...
>
>I am trying to use Log4J in an EJB (specifically, my App Server is
Weblogic
>6.1 but I don't think that's relevant). I am configuring the logger and
its
>appenders programmatically, and my test log messages are being reported
>correctly.
>
>However, every message is also being logged to standard output. I've
done a
>bit of diagnosis and discovered that, as well as my own appender, there
is
>a console appender defined at the root level. I presume this has been
>configured by the BasicConfigurator. But really, I don't want this
default
>behaviour, I just want to control the logging for my own components
myself
>via the Log4J API.
>
>Seems like this should be an FAQ but either it isn't or my brain is on
>holiday ...
>
>Thanks for any ideas
>Keith
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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

Reply via email to