Assuming that you're using XMLConfigurator, you can use the following
adjuration in your config file:

<log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'
                debug="true" threshold="debug">

This will cause Log4j to issue log statements to System.out during
initialization and at some other occasions (e.g. when files roll etc). Error
messages will be dumped to System.err irrespective of debug set to true or
not. All Log4j messages to System err/out are prefixed with 'LOG4j:'

Hope this helps.

--

Thomas


| -----Original Message-----
| From: Jacob Kjome [mailto:[EMAIL PROTECTED]]
| Sent: 10 June 2002 19:03
| To: Log4J Users List
| Subject: Logging while initializing config file question...
|
|
|
| What does one do during configuration of Log4j?  For instance, when
| one calls PropertyConfigurator.configure(file) or
| PropertyConfigurator.configureAndWatch(file), what kind of logging is
| available to see what is happening during this?  Do you just bite but
| bullet and do System.out.println(String)?
|
| Jake
|
|
| --
| To unsubscribe, e-mail:
| <mailto:[EMAIL PROTECTED]>
| For additional commands, e-mail:
| <mailto:[EMAIL PROTECTED]>
|
|



*************************************************************************
Copyright ERA Technology Ltd. 2002. (www.era.co.uk). All rights reserved. 
The information supplied in this email should be treated in confidence.
No liability whatsoever is accepted for any loss or damage 
suffered as a result of accessing this message or any attachments.

________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com
________________________________________________________________________

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

Reply via email to