Discussions

Web tier: servlets, JSP, Web frameworks: Configuring Log4j in tomcat web applications

  1. Configuring Log4j in tomcat web applications (1 messages)

    I had a problem with log4j. I had written a log4j.xml file like this <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> And placed this file in web-inf/classes directory. I dont have problem with deploying this, but i am not able to see the deploy messages which i normally used to see when the tomcat is getting started ie on the tomcat console. And i am able to see this messages in the log file i have mentioned above ie test.log But i want to use the above file as well. So tell me any changes to make. I want to see the information back on the console, not the thing in the log file ie the deploy information. please help me my mail id : etta.ramesh@yahoo.com
  2. You need to create a conolsoe appender same as File appender and attach yr console appender to yr logger/category. Its being attached here, but first you need to create a Console Appender