Re: Programmatically setting log4j2 log level

2013-05-17 Thread Ralph Goers
Can you provide a sample application that demonstrates this? Ralph On May 16, 2013, at 9:44 PM, Eric Scheie wrote: I'm developing a web application and would like to be able to dynamically change log levels from within my application instead of editing the log4j2 configuration file. I'm

Re: Custom Syslog Format: Appending Exceptions?

2013-05-17 Thread Tomek Kaczynski
Hi Gary, I've found some time to commit my syslogWrapLayout class, but I can't push my change to the server because it prompts me for a user and password. As far as I see this is different account from the JIRA one. Can you please help me and send me a link with guidline saying how to commit

Re: Programmatically setting log4j2 log level

2013-05-17 Thread Eric Scheie
Here is a simple program that can reproduce my problem: import org.apache.logging.log4j.Level; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; public class Main { public static void main(String[] args) { Logger rootLogger =

Re: Programmatically setting log4j2 log level

2013-05-17 Thread Ralph Goers
No, the X Logger does not inherit its level from the root Logger. It inherits its level from the root LoggerConfig. See the picture at http://logging.apache.org/log4j/2.x/manual/architecture.html. The level you are modifying is brought into each Logger so that the level can be tested very