com.j2biz.blogunity.web.filter
Class AccessLogFilter

java.lang.Object
  extended bycom.j2biz.blogunity.web.filter.AccessLogFilter
All Implemented Interfaces:
Filter

public class AccessLogFilter
extends Object
implements Filter

This filter logs requestes to blog(s) in combined log format.


Field Summary
protected static String[] months
          The set of month abbreviations for log messages.
 
Constructor Summary
AccessLogFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(ServletRequest req, ServletResponse res, FilterChain chain)
           
 void init(FilterConfig arg0)
           
 void log(String message, File dir)
          Log the specified message to the log file, switching files if the date has changed since the previous log call.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

months

protected static final String[] months
The set of month abbreviations for log messages.

Constructor Detail

AccessLogFilter

public AccessLogFilter()
Method Detail

init

public void init(FilterConfig arg0)
          throws ServletException
Specified by:
init in interface Filter
Throws:
ServletException

doFilter

public void doFilter(ServletRequest req,
                     ServletResponse res,
                     FilterChain chain)
              throws IOException,
                     ServletException
Specified by:
doFilter in interface Filter
Throws:
IOException
ServletException

destroy

public void destroy()
Specified by:
destroy in interface Filter

log

public void log(String message,
                File dir)
Log the specified message to the log file, switching files if the date has changed since the previous log call.

Parameters:
message - Message to be logged


Copyright (c)j2biz.com