Solved

log4j appender additivity

Posted on 2007-12-01
1
4,225 Views
Last Modified: 2013-12-29
Here is part of my log4j.properties file

# Set root logger level to INFO and its appenders to A1, A2.
log4j.rootLogger=INFO, A1, A2
log4j.logger.rwong.broker.stats=INFO, A3
log4j.logger.rwong.broker.historical=INFO, A4

I don't want classes in the historical and stats packages to use the appenders of the root logger.
How do I set the appender additivity to do this?
0
Comment
Question by:IgorY
1 Comment
 
LVL 8

Accepted Solution

by:
malfunction84 earned 500 total points
ID: 20403214
log4j.additivity.rwong.broker.historical=false
log4j.additivity.rwong.broker.stats=false
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now