Re: isDebugEnabled - log4j

Endre Stølsvik <[email protected]>
Newsgroups gmane.comp.java.sun.servlet
Message-ID <Pine.LNX.4.44.0407191822350.374-100000@excalibur.intra.coretrek.com>
On Mon, 19 Jul 2004, [email protected] wrote:

| Is there any possibility to set or change programmatically what seems to be org.apache.log4j.Logger's read-only property: debugEnabled?
| You can only ask for its value through isDebugEnable().
| Is it possible they didn't think about a getter method?

I guess you meant setter, right?

| Please, help me.

How can you possibly ask this on Sun's "servlet-interest" mailing list?
Log4j-questions on servlet-interest? Amazing, really!

How about trying log4j's user list?

( You configure the log4j logging hierarchy using "Configurators", not on
the Logger instances themselves. The best option is to use a config file.
RTFM.. )

Regards,
Endre

___________________________________________________________________________
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.