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 6792161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:56:06+00:00 2026-05-26T17:56:06+00:00

a very good day to all . I am asking a question , out

  • 0

a very good day to all .

I am asking a question , out of curisioty , may be this seem to be a foolish question also .

This is my log4j.properties file for a Application which will be in production very soon .

log4j.rootCategory=Info, A1

A1 is a DailyRollingFileAppender

log4j.appender.A1=org.apache.log4j.DailyRollingFileAppender
log4j.appender.A1.file=D:/MyWEBLogs/MyWEB.log
log4j.appender.A1.datePattern='.'yyyy-MM-dd
log4j.appender.A1.append=true
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-22d{dd/MMM/yyyy HH:mm:ss} - %m%n

As you can see the file path i have mentioned here is D:/MyWEBLogs/MyWEB.log .
(This works fine under Windows Environment )

But our Application will be taken as a war file and deployed inside Tomcat inside Linux Environment .

Inside Linux Environemnt , we are not sure about the path (That is whaere this tomcat resides there …) and also as a user we have got limited permissions , like to create a file —etc

So now my question is , what should be the best default path to be put in below line , so taht it runs anywhere in linux Environemnt , no matter where it is placed

log4j.appender.A1.file=D:/MyWEBLogs/MyWEB.log
  • 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-26T17:56:07+00:00Added an answer on May 26, 2026 at 5:56 pm

    should be ${user.home}/appName/MyWEB.log , user generally has right to write in home dir

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

Sidebar

Related Questions

a very good day to all of you . I am trying to compare
A very good day to all . I was suppoused to develop a UI
Good day, This is more web service design than programming question I think. I'll
a very good day to all . I have Generating a self signed KeyStore
I must apologize if this is a duplicate question, but I can't seem to
Good day all, I have a preset situation that can't be changed, that revolves
Good day all, I have written an application that i require to have a
I'm not very good with ruby so I'm very thankful for all the help
Good day. My text file content below. tmp.txt (a very big size file) constant
Good day everyone, i hope you are all happy and healthy :) My problem

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.