ServletContext context = sre.getServletContext();
ServletRequest request = sre.getServletRequest();
synchronized (context){
context.log("Request for "+
(request instanceof HttpServletRequest ? ((HttpServletRequest) request).getRequestURI() : "Unknown")+"; Count="+ ++reqCount);
}