On Friday 20 August 2010, Rainer Jung wrote: > On 20.08.2010 11:43, David Goodenough wrote: > > How do I write log entries from a Filter. In a servlet there is a log > > method but as a filter only implements Filter that is obviously not an > > option. > > The init() of the filter is called with a FilterConfig argument, from > which you get a ServletContext via getServletContext(), which you can > store locally. The ServletContext then has the log methods you want. thanks. Exactly what I needed.
David > > Regards, > > Rainer > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org