Re: Tomcat Valve, how to Create Pattern

2006-03-27 Thread Jon Wingfield
I may be wrong but I think there are only two predefined names: "common" 
and "combined". For all others you set the pattern attribute to the 
required number and ordering of pattern elements as defined in the docs. 
From the docs:
The shorthand pattern name common (which is also the default) 
corresponds to %h %l %u %t "%r" %s %b


So, for example, if all you wanted was the url, the time it took to 
serve and the user agent you would set the pattern to:

%U %D "%{User-Agent}i"

The latter pattern element I got from the javadoc:
http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/index.html

Jon

Scott Purcell wrote:

Tomcat 5.5
OS=Win2000

I would like to change the pattern for a valve in my server.xml. The API
shows when you have the element 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat Valve, how to Create Pattern

2006-03-27 Thread Scott Purcell
Tomcat 5.5
OS=Win2000

I would like to change the pattern for a valve in my server.xml. The API
shows when you have the element