HttpServletRequest req = null;
String id = config.getInitParameter("log-id");
if (id == null)
id = "unknown";
if (log != null && (request instanceof HttpServletRequest)){
req = (HttpServletRequest) request;
log.info(
"Log id:" + id + ": Request received from: " + req.getRemoteHost() + " for " +
req.getRequestURL()); }
chain.doFilter(request,response);