[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4307
  • Last Modified:

log4j appender additivity

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
IgorY
Asked:
IgorY
1 Solution
 
malfunction84Commented:
log4j.additivity.rwong.broker.historical=false
log4j.additivity.rwong.broker.stats=false
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now