This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cant able to see messages in Tomcat Console

 
Ramesh Etta
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ramesh Etta
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Ben,

Yes i put it in tomcat_home/myapp/web-inf/classes only.

please help me.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic