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

  • SEARCH
  • Home
  • 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 9203967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T23:35:41+00:00 2026-06-17T23:35:41+00:00

For some specific reason I need to retain both my app specific log and

  • 0

For some specific reason I need to retain both my app specific log and catalina.log. I have configured log4j to use RollingFileAppender for my app specific logs and it is working fine. Is there any way to use similar logging mechanism for catalina.logs also.

Can I do this by somehow tweaking the logging.properties under conf.

  • 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-06-17T23:35:43+00:00Added an answer on June 17, 2026 at 11:35 pm

    You can use logrotate. If you run ubuntu.
    Create this file

    /etc/logrotate.d/tomcat
    

    Copy the following contents into the above file

    /var/log/tomcat/catalina.out {  
     copytruncate  
     daily  
     rotate 7  
     compress  
     missingok  
     size 5M  
    

    }

    Make sure that the path /var/log/tomcat/catalina.out above is adjusted to point to your tomcat’s catalina.out

    daily – rotates the catalina.out daily

    rotate – keeps at most 7 log files

    compress – compresses the rotated files

    size – rotates if the size of catalina.out is bigger than 5M

    Thats it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For some reason I have to delete phonegap-1.4.1 and use cordova-1.5.0, For this what
Is there a specific reason why some people put a semicolon after the curly
How can I remove some specific elements from a numpy array? Say I have
I have some specific id like 1,2,5,11,64589 in solr (int type) I want to
I'm doing some specific signal analysis, and I am in need of a method
After eliminating some specific nonsense pattern, I need to identify and possibly delete fields
I need some help. I'm looking to have a sidebar that toggles when a
I have a situation where I need to make some data available for reading
I have a specific case here in which I would like some security advice.
For some complicated reason, I need to mark some Javascript as special, like this:

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.