//display a DEBUG level message
log.debug("Sending a DEBUG message");
//display an INFO level message
log.info("Sending an INFO message");
//better display something
response.setContentType("text/html");
java.io.PrintWriter out = response.getWriter();
out.println("<html><head><title>Servlet logging</title></head><body>");
out.println("<h2>Hello from LoggerCLServlet: " + log.getClass().getName() + "</h2>");
out.println("Is the log info enabled? " + log.isInfoEnabled() +"<br>");
out.println("Is the log debug enabled?" + log.isDebugEnabled()+"<br>");
out.println("</body></html>");
out.close();