You have two root loggers. Only one of them is going to take effect. The other
should have generated an error but it sounds like it didn't. That is a bug and
needs to be fixed.
It sounds like the second root logger is winning and so all messages except
those marked as trace will go to the
Thanks Ralph, that clears up a lot of confusion.
I still have another question about properties files. In log4j 1.2, we can use
a
regular file in the style of attribute=value. Are we still able to do that
in log4j2? Or, has JSON/XML become the standards and preferred options?
I have not implemented support for properties files in Log4j 2. It would be
fairly easy to implement but I've never really liked the way they worked in
Log4j 1.x so I just didn't do it. I prefer XML but at an ApacheCon a couple of
years ago I was encouraged to support JSON and since it
Hi, I have several questions for the group. I have read and studied the 2.x
manual, but I could not find any examples or situations related to what I am
trying to do.
1) My ultimate goal is to have certain levels, like TRACE and DEBUG, to go into
the Console. At the same time, I want all of my