× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Mark,

The trick is that you have to add the logger name to the Struts logging
property. I 
use a custom logger that sends messages to the job log. That
implementation is 
available at:

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/iseries-toolkit/iseries-toolkit/src/java/org/iseriestoolkit/util/DefaultLog.java?rev=HEAD&content-type=text/vnd.viewcvs-markup

And the Log is at:

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/iseries-toolkit/iseries-toolkit/src/java/org/iseriestoolkit/util/Log.java?rev=HEAD&content-type=text/vnd.viewcvs-markup

If you use those the logger names are set something like:

org.apache.commons.logging.Log=org.iseriestoolkit.util.DefaultLog

org.iseriestoolkit.util.DefaultLog.log.org.apache.struts.util.PropertyMessageResources=info
org.iseriestoolkit.util.DefaultLog.log.org.apache.struts.util.RequestUtils=info
org.iseriestoolkit.util.DefaultLog.log.org.apache.struts.util.MessageResourcesFactory=info
org.iseriestoolkit.util.DefaultLog.log.org.apache.struts.action.ActionServlet=info
org.iseriestoolkit.util.DefaultLog.log.org.apache.commons.digester.Digester=info
org.iseriestoolkit.util.DefaultLog.log.org.apache.commons.digester.Digester.sax=info
org.iseriestoolkit.util.DefaultLog.log.org.apache.commons.beanutils.MethodUtils=info
org.iseriestoolkit.util.DefaultLog.log.org.apache.commons.beanutils.ConvertUtils=info
org.iseriestoolkit.util.DefaultLog.log.org.apache.commons.beanutils.BeanUtils=info

>From prior posts I know that you use Eclipse. I generally build the
various 
Jakarta projects from source with ant and add the source to the jar. I
use 
that in my workspace so that I can just step into the code and see what

values are expected, which is how I arrived at these names.

David Morris


>>> MarkP@softlanding.com 02/10/03 06:59PM >>>

If anyone on this list is using Struts 1.1, have you figured out how
the
heck to control the amount of messages it dumps in the logs?  All of
the
books say you just need to turn on commons-logging and configure the
severity level of the messages you want to receive, but they do not go
into
real detail.  I cannot seem to get this working.  I get messages for
every
"GET", every "Tile"--everything.

Thanks

Mark

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.