>-----Original Message----- >From: Leo Donahue - PLANDEVX [mailto:leodona...@mail.maricopa.gov] >Subject: Access Log Valve - Query String > >I am currently using the common pattern to log all requests using the >Access Log Valve. > > <Valve className="org.apache.catalina.valves.AccessLogValve" >directory="c:/apache-tomcat-logs/webappname" > prefix="webappname_access_log." suffix=".txt" pattern="common" >resolveHosts="false"/> > >Question: >I'd like to start logging the Query String - I think. The webapp is a >JSF webapp, using Sun RI 1.2 of JSF. I'm not interested in logging the >javax.faces.ViewState parameter, but if I use the query string option, >will the ViewState parameter show up in the log? > >At this point, all I want is the textfield and the datetime. Should I >write my own log for this? > >Reason: >I want to log what the user enters into the search field. I'd like to >find out if the value entered into the search field is causing a >problem. >The reason: java.lang.NullPointerException caused by some line in my >code that should never execute if the what the user entered in the >search field is not found in the database. > >Working with GIS data, it could be that what the user searched for is >found, but that I have some kind of geometry problem associated with >that record that is causing a null pointer on a feature cursor. > >I can provide more detail if needed. > > >Using CATALINA_BASE: "C:\apache-tomcat-6.0.29" >Using CATALINA_HOME: "C:\apache-tomcat-6.0.29" >Using CATALINA_TMPDIR: "C:\apache-tomcat-6.0.29\temp" >Using JRE_HOME: "C:\Program Files\Java\jdk1.6.0_20" >Using CLASSPATH: "C:\apache-tomcat-6.0.29\bin\bootstrap.jar" >Server version: Apache Tomcat/6.0.29 >Server built: July 19 2010 1458 >Server number: 6.0.0.29 >OS Name: Windows 2003 >OS Version: 5.2 >Architecture: x86 >JVM Version: 1.6.0_20-b02 >JVM Vendor: Sun Microsystems Inc. > >Leo Donahue >
Looks like Request Dumper Valve does what I want. Satisfied for now. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org