Dear All, 
 
I am trying to configure logback-access for tomcat to be able
to log out http requests and responses including the payloads.
 
I tried including
 
<filter> 
<filter-name>TeeFilter</filter-name> 
<filter-class>ch.qos.logback.access.servlet.TeeFilter</filter-class> 
</filter>
<filter-mapping> 
<filter-name>TeeFilter
</filter-name> 
<url-pattern>/*</url-pattern> 
</filter-mapping>
 
in web.xml as suggested under http://logback.qos.ch/recipes/captureHttp.html
 
The logging works as expected, however, I would like to be able to switch logging on and off
from outside of the application. As far as I see changing 'includes' and 'excludes' init-params (as suggested under
the above link) is only possible be recreating the application war file as those would be in web.xml.
 
Is there any way to use the TeeFilter and activate/deactivate it without repackaging the application?
 
I tried moving the filter configuration from web.xml to logback-access.xml. However, in this
configuration, the request/response payloads are not output in the log.
 
thanks a lot in advance.
Best Regards, Roman