| Author |
Cant able to see messages in Tomcat Console
|
Ramesh Etta
Ranch Hand
Joined: Sep 18, 2007
Posts: 46
|
|
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"> <log4j:configuration> <appender name="CSF_FILE" class="org.apache.log4j.RollingFileAppender"> <param name="File" value="C:/test.log"/> <param name="Append" value="false"/> <param name="MaxFileSize" value="5000KB"/> <param name="MaxBackupIndex" value="1"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/> </layout> </appender> <category name="com.test"> <priority value="DEBUG"/> <appender-ref ref="CSF_FILE"/> </category> </log4j:configuration> 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 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
|
 |
Ben Souther
Sheriff
Joined: Dec 11, 2004
Posts: 13410
|
|
Are you sure you only put this in WEB-INF/classes? From what I know, It won't change Tocmat's own logging unless you put it in tomcat/common/classes.
|
Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
|
 |
Ramesh Etta
Ranch Hand
Joined: Sep 18, 2007
Posts: 46
|
|
hi Ben, Yes i put it in tomcat_home/myapp/web-inf/classes only. please help me.
|
 |
 |
|
|
subject: Cant able to see messages in Tomcat Console
|
|
|