Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 353477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T11:50:02+00:00 2026-05-12T11:50:02+00:00

Requirement is this … We have our 3 web-applications deployed in RHEL-5 server, we

  • 0

Requirement is this …

We have our 3 web-applications deployed in RHEL-5 server, we deployed apps with tomcat 6.0.16.
We want to configure stdout, stderr, which are coming in tomcat/logs/catalina.out in app specific log file like,

tomcat/logs/app1.log
tomcat/logs/app2.log
tomcat/logs/app3.log

we are using log4j, but it is only generating logging details we need stdout per-app which is coming in tomcat/logs/catalina.out

Any Help Appreciated …

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T11:50:02+00:00Added an answer on May 12, 2026 at 11:50 am

    Try this,

    1. Each application must use its own log4j. You can achieve this by placing log4j.jar in WEB-INF/lib of each application.
    2. In each log4j’s configuration file (default location is WEB-INF/classes), specify the log file name, e.g. log4j.appender.AppLog.File=${catalina.home}/logs/app1.log.
    3. Add swallowOutput="true" for each context so stdout, stderr will go to your own log.

    We do this on Tomcat 5.5 but I think it should work on 6.0 also.

    EDIT: Here is our META-INF/context.xml,

    <?xml version="1.0" encoding="UTF-8"?>
    <Context override="true" swallowOutput="true" useNaming="false">
      <WatchedResource>WEB-INF/web.xml</WatchedResource>
      <Manager pathname=""/>
    </Context>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have requirement like this: On one server(linux) I need to run 2 instances
I have a requirement to produce PDF's for one my .Net web applications currently
I have this requirement, I have two classes Person and Department and i want
I realized today that I have blindly just followed this requirement for years without
I am working in JTable and I have a requirement like this. Say There
This is my requirement: I have a bunch of radio box selections (types of
I have a kind of funny and weird requirement this time. I have my
I have this requirement. I need to design a table with 3 rows (each
I have this requirement from client where depending on the location of the iPhone
so I have this requirement to kick off Activities provided to me at run-time.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.