Question regarding use of Log and LogFactory in Servlets
Hi,
I saw the following code in an application and I would like to know where the log information would be stored. It appears that the log information is not displayed on the screen and was not able to find out where the log files are. The application was created using NetBeans and was using Tomcat. Thanks in advance.
import org.apache.common.logging.*;
public class Test extends HttpServlet
{
private static final Log log = LogFactory.getLog(Test.class);
String theHost;
String theSource;
public void init (ServletConfig config) throws ServletException
{
super.init(config);
log.info(揹ebug Enabled: ?log.isDebugEnabled());
ServletContext context =config.getServletContext();
this.thisHost=?Test/?config.getServletName();
etc. etc.
log.info(搕hisHost:?this.thisHost);
log.debug(揝ource:?+theSource());
etc, etc.
}
}

