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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:02:10+00:00 2026-05-27T03:02:10+00:00

This is my above log4j.properties file , log4j.rootCategory=Info, A1 # A1 is a DailyRollingFileAppender

  • 0

This is my above log4j.properties file ,

log4j.rootCategory=Info, A1

# A1 is a DailyRollingFileAppender

log4j.appender.A1=org.apache.log4j.DailyRollingFileAppender
log4j.appender.A1.file=${user.home}/MYWEB/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

I have these statements:

logger.info("The middleware url is"+Request.getSecurityHeader().);
logger.debug("Inside the Jai method");
logger.debug("The middleware url is"+URL);

Why am I getting this line only

The middleware url is

Why is the debug not being executed?

  • 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-27T03:02:11+00:00Added an answer on May 27, 2026 at 3:02 am

    First replace this line at the top

    log4j.rootCategory=Info, A1
    

    with

    log4j.rootCategory=DEBUG, A1
    

    I hope problem will be solved, You can also add following statement after replacing the above line.

    log4j.appender.aar.Threshold=DEBUG
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My log4j.xml : <appender name=B2BAPP class=org.apache.log4j.RollingFileAppender> <param name=File value=/LOGS/SAM/B2B_VJ.log/> <param name=Threshold value=ERROR/> <param name=MaxFileSize
I implemented log4j logging in my JSF application.My log4j.properties file is like this log4j.rootLogger=DEBUG,
I want to maintain two Log Files in my web-application using apache Log4j.jar: 1)
I've just started using Log4J for the first time. I created a log4j.properties file
how to validate this id in vb.det enash.dine@gmail.com using=ValidationExpression=^[\w-]+@[\w-]+.(com|net|org|edu|mil)$ this above code will not
I've embedded a SWF into a class using this syntax above my class definition:
Code as reference: http://jsbin.com/aboca3/2/edit In this example above (thank you SLaks) I am truncating
I am trying to parse some XML, however, I get the error above this
Here is the code I use to define my array, this code is above
The above expression is working fine. this expression means first leter should start with

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.