File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Catalina.out log file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Catalina.out log file" Watch "Catalina.out log file" New topic
Author

Catalina.out log file

Rambabu Gonela
Greenhorn

Joined: Jul 31, 2006
Posts: 24
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

Joined: Apr 07, 2009
Posts: 17
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

Joined: Jan 10, 2002
Posts: 60752
    
  65

Use Log4J which give you fine-grained control over your logging.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Catalina.out log file
 
Similar Threads
how can I stop log4j writing log to catalina.out
want to change Catalina.out
Tomcat 5.5 logging internal process in tomcat_out.log
WARN level is not working
error running servlets using tomcat