You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by pc leung <li...@gmail.com> on 2005/11/03 04:34:42 UTC

where to define log level

In the mailreader example of struts,
there are lines of
log.isTraceEnabled()
log.isDebugEnabled()
 Where to make the trace or debug enable or disable?
 Thanks

RE: where to define log level

Posted by "David G. Friedman" <hu...@ix.netcom.com>.
The logging facilities use the Commons Logging classes.  You can find them
(on the newly redesigned Struts.apache.org site) under the "Core
Framework" -> "User Guide" -> "Controller components" -> Section 4.11"
Commons Logging Interface", or directly using this URL:

http://struts.apache.org/struts-core/userGuide/building_controller.html#logg
ing

Additionally, since the Commons Logging has a few other levels, you could
make even more levels of detail if you used the Commons Logging in your own
application(s).

Regards,
David

-----Original Message-----
From: pc leung [mailto:lightplace@gmail.com]
Sent: Wednesday, November 02, 2005 10:35 PM
To: Struts Users Mailing List
Subject: where to define log level


In the mailreader example of struts,
there are lines of
log.isTraceEnabled()
log.isDebugEnabled()
 Where to make the trace or debug enable or disable?
 Thanks


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org