Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Catalina.out log file

 
Rambabu Gonela
Greenhorn
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,

my requirement is, I have to write standard output into catalina.out log file. I am trying with below approach
using Tomcat5.5

System.out.println(exception.getMessage());
StackTraceElement []error = exception.getStackTrace();
for(int i=0;i<error.length;i++)
{
java.lang.System.out.println(error[i]);
}

But its not writing into catalina.out log file, it contains only server information (start up and stop).

Please help on this
 
Latha Sree
Greenhorn
Posts: 17
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friend,

I am facing typical problem.

I am using Tomcat 6.0 and my web application logging is java.util.logging,

When I am running my application, catalina.out is logging both Tomcat serevr logs and application logs also.
But,we dont want our application logs in catalina.out

Please help me what to change inorder to achieve this..


Thanks in advance.
Madhavi
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64194
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use Log4J which give you fine-grained control over your logging.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic