You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Albrecht Berger <be...@gmx.ch> on 2004/02/19 17:25:18 UTC

multiple patterns in ExtendedAccessLogValve

Hello,

is it possible to define multiple patterns
in ExtendedAccessLogValve or JDBCAccessLogValve,
e.g. for for use pattern1 when url is matching url1,...


For example :

url index.jsp?p1=v1&p2=v2
The params p1 and p2 should be logged.

url show.jsp?p5=v5&p6=v6
The params p5 and p6 should be logged.

I want to log to JDBCDatasource, so that I can
run statistic queries on my table.


Thx
berger


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: multiple patterns in ExtendedAccessLogValve

Posted by Tim Funk <fu...@joedog.org>.
No, but IIRC with AccessLogValve and ExtendedAccessLogValve  - you can do 
conditional logging. With conditional logging turned on, a record will be 
logged if a attribute (as configured by you) exists in the ServletRequest 
after the request was served. (Or it might be the opposite, the absence of 
the object in the Servlet request lets you do the logging)

You can also have multiple access logs per Context or Host. From there you 
could merge the logs.

-Tim

Albrecht Berger wrote:

> Hello,
> 
> is it possible to define multiple patterns
> in ExtendedAccessLogValve or JDBCAccessLogValve,
> e.g. for for use pattern1 when url is matching url1,...
> 
> 
> For example :
> 
> url index.jsp?p1=v1&p2=v2
> The params p1 and p2 should be logged.
> 
> url show.jsp?p5=v5&p6=v6
> The params p5 and p6 should be logged.
> 
> I want to log to JDBCDatasource, so that I can
> run statistic queries on my table.
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org