com.j2biz.blogunity.web.filter
Class AccessLogFilter
java.lang.Object
com.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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
months
protected static final String[] months
- The set of month abbreviations for log messages.
AccessLogFilter
public AccessLogFilter()
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