tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Schrag <msch...@cavtel.net>
Subject patch to AccessLogInterceptor
Date Fri, 07 Sep 2001 13:46:44 GMT
You might want to add this method to AccessLogInterceptor -- It basically flushes the log to
disk during shutdown.  I ran into a couple of cases where the streams weren't properly flushed
and the log was missing.

It may be appropriate to do this in a finalize too.


    public void engineShutdown(ContextManager cm) throws TomcatException {
      try {
        getFileWriter().flush();
        getFileWriter().close();
      } catch (IOException e) {
        e.printStackTrace();
      }
   }


Mike

Mime
View raw message