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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:34:19+00:00 2026-06-12T22:34:19+00:00

This was the log4j file I used for my project till I checked in

  • 0

This was the log4j file I used for my project till I checked in my project to a SVN repository. This was working fine and I saw log information on Eclipse’s console

log4j.rootLogger=debug, stdout, R

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout

# Pattern to output the caller's file name and line number.
log4j.appender.stdout.layout.ConversionPattern=%d - %p %t %C.%M (%F:%L) %m%n

log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=x.log

 log4j.appender.R.MaxFileSize=100KB
 # Keep one backup file
log4j.appender.R.MaxBackupIndex=1

log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d - %p %t %C.%M (%F:%L) %m%n

I checked out my project from repository and disabled logging by making this change in my log4j property file.

#log4j.rootLogger=debug, stdout, R
log4j.rootLogger=OFF

But this change didn’t work as expected, I still got the log information on Eclipse’s console. When I cross checked the same on Terminal, it was fine, I didn’t get log info on Terminal. Any problem with Eclipse? I searched a lot on this issue, didn’t get any solution. Help me in finding out what’s wrong here!!!

  • 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-12T22:34:21+00:00Added an answer on June 12, 2026 at 10:34 pm

    There are two possible issues here:

    1. the configuration should say (to tell it no appenders, instead of looking for OFF appender):

      log4j.rootLogger=

    2. Eclipse is using an old version of the file, likely because you edited the file outside of Eclipse. Just refresh the file (Right click / Refresh) and it should start working as you expect.

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

Sidebar

Related Questions

My procedure for using log4j is this: put a .properties file somewhere in a
I'm using log4j for record my program's log. The code is like this: static
I am used to using Tomcat/Log4J for my logging. My current project is deployed
I implemented log4j logging in my JSF application.My log4j.properties file is like this log4j.rootLogger=DEBUG,
i have started learning something about log4j as so far its working fine here
This is my Student class that used to test log4j. public class Student{ private
Until now, I've used a method with log4j like this: void writeMethod(String msg){ StackTraceElement[]
I've set my log4j.properties file to this configuration below log4j.rootLogger=INFO, CATALINA # Define all
We use this Log4J config to display JTA info: <category name=org.springframework.transaction> <priority value=DEBUG/> </category>
So we have our J2EE application using Log4j like this public class CustomerController {

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.