You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Apache Wiki <wi...@apache.org> on 2005/12/06 01:43:49 UTC

[Struts Wiki] Update of "StrutsLogging" by CraigMcClanahan

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:
http://wiki.apache.org/struts/StrutsLogging

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:
+ 
+ org.apache.commons.logging.simplelog.log.org.apache.struts=info 
+ 
+ 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: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org