0 Replies Latest reply on Sep 25, 2003 7:51 AM by paulhussein

    problems getting logging output

    paulhussein Newbie

      Hi,

      Am new to using jboss. I am switching from tomcat to using JBoss, and cant seem to get any logging output.

      I have included my jsp as below, which I deploy into an empty war. I run the jsp and nothing is seen on the console or in the main server log, but I see the jsp output in the browser.


      Can anyome point me in the right direction.


      Cheers


      Paul.

      <%@page contentType="text/html"%>

      <%@page import="java.io.*"%>
      <%@page import="java.util.*"%>
      <%@page import="javax.sql.*"%>
      <%@page import="java.sql.*"%>
      <%@page import="javax.naming.*"%>
      <%@page import="org.w3c.dom.*" %>
      <%@page import="org.apache.log4j.Logger" %>




      <%
      Logger logger = null;


      try {

      // Get logger
      logger = Logger.getLogger("org.jboss.web.WebServer");
      logger.error ( "enter" );
      logger.info ( "enter" );
      logger.debug ( "enter" );
      out.println( "done logging ");


      } catch (Exception e){
      out.println( "" + e.toString ( ) + " ");

      e.printStackTrace();
      }

      %>