First, your understanding is incorrect. You can attach appenders to any
logger, not just the root. Second, there must be some other stray log4j
config file being loaded, instead of this one, that logs to a file appender
pointing at the same file as the one in this log4j.properties.
I sugge
Check out the additivity setting. Plus, check out Log4j 2.0 as that's what
we're all focused on right now!
On 11 July 2014 01:01, Vishal Pore wrote:
> My log4j.properties file is pasted below. My understanding is that we need
> to add Appenders to the *root *logger for the appender to work. As
My log4j.properties file is pasted below. My understanding is that we need
to add Appenders to the *root *logger for the appender to work. As you can
see in the below properties file, only appender A is attached to the root
logger (log4j.rootLogger=info, A). However, what I see is that the logging