• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Catalina.out log file

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Use Log4J which give you fine-grained control over your logging.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic