Solved

log4j appender additivity

Posted on 2007-12-01
1
4,255 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

860 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