aspose file tools
The moose likes Tomcat and the fly likes Cant able to see messages in Tomcat Console Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "Cant able to see messages in Tomcat Console" Watch "Cant able to see messages in Tomcat Console" New topic
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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Cant able to see messages in Tomcat Console
 
Similar Threads
RollingFileAppender not happening
Multiple File Appenders in log4j
log4j.xml for app log.
Jboss final start up message not comes up in console
invalid console appender .....