Powered byDOCULET
 
public class RequestInterceptor {
    private static final Logger logger = Logger.getLogger("requestLogger"); (1)

    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
        logger.info("Received request from user: " + request.getRemoteUser()); (2)
        return true;
    }
}
1 Should match name of logger
2 This will be logged to requests.log