struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Struts Wiki] Update of "StrutsLogging" by CraigMcClanahan
Date Tue, 06 Dec 2005 00:43:49 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Struts Wiki" for change notification.

The following page has been changed by CraigMcClanahan:

The comment on the change is:
Mention that you can set logging levels per logger, not just globally

  But, you'll never complain about Struts not giving enough error messages again :)
+ If this gives you too much information, however, it is also possible to fine tune the sources
for debug or trace level output, instead of setting the default logging level for *all* loggers.
 This is based on a typical convention in software that uses Commons Logging, in that a particular
class "com.mycompany.mypackage.Foo" will use a logger of exactly the same name, and each uniquely
named logger can have its own logging level.  For example, to set the logging level for *only*
Struts framework classes (all the classnames begin with org.apache.struts), you could add
a line like this:
+ You can set logging levels for as many different loggers as you wish, to have fine grained
control over which logging messages you are really interested in.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message