Re: Change log level on the fly?

2015-11-10 Thread Gary Gregory
; > >> Looking at https://logging.apache.org/log4j/2.0/manual/jmx.html > > >> Doesn't seem like the solution. > > >> Asking the user to bring up jconsole seems rather excessive. > > >> I just want to provide 3 radio buttons in my configuration. Logging &g

RE: Change log level on the fly?

2015-11-09 Thread John Lussmyer
[mailto:boa...@gmail.com] Sent: Monday, November 09, 2015 7:54 PM To: Log4J Users List Subject: Re: Change log level on the fly? Loggers can be reconfigured through JMX. On 9 November 2015 at 19:53, John Lussmyer <john.lussm...@efi.com> wrote: > I'm hoping there is an easy to to ju

Re: Change log level on the fly?

2015-11-09 Thread Ralph Goers
t;> I just want to provide 3 radio buttons in my configuration. Logging >> Normal, Medium, Full. >> >> -Original Message- >> From: Matt Sicker [mailto:boa...@gmail.com] >> Sent: Monday, November 09, 2015 7:54 PM >> To: Log4J Users List >> Subject: Re:

Re: Change log level on the fly?

2015-11-09 Thread Matt Sicker
Logging > Normal, Medium, Full. > > -Original Message- > From: Matt Sicker [mailto:boa...@gmail.com] > Sent: Monday, November 09, 2015 7:54 PM > To: Log4J Users List > Subject: Re: Change log level on the fly? > > Loggers can be reconfigured through JMX. &

Change log level on the fly?

2015-11-09 Thread John Lussmyer
I'm hoping there is an easy to to just change the root level of my logger configuration on the fly. I want to be able to provide a configuration option to my users to turn up the logging level. I don't want to reconfigure everything, just change the level. Is there any easy way to do that? Or

Re: Change log level on the fly?

2015-11-09 Thread Ralph Goers
We have unit tests that do this. Basically you need to do: final LoggerContext ctx = (LoggerContext) LogManager.getContext(false); final Configuration config = ctx.getConfiguration(); Map loggers = config.getLoggers(); for (Map.Entry logger :

Re: Change log level on the fly?

2015-11-09 Thread Matt Sicker
Logging >> Normal, Medium, Full. >> >> -Original Message- >> From: Matt Sicker [mailto:boa...@gmail.com] >> Sent: Monday, November 09, 2015 7:54 PM >> To: Log4J Users List >> Subject: Re: Change log level on the fly? >> >> Loggers can be rec

Re: Change log level on the fly?

2015-11-09 Thread Matt Sicker
nfiguration. Logging > >> Normal, Medium, Full. > >> > >> -----Original Message- > >> From: Matt Sicker [mailto:boa...@gmail.com] > >> Sent: Monday, November 09, 2015 7:54 PM > >> To: Log4J Users List > >> Subject: Re: Change log leve

Re: Change log level on the fly?

2015-11-09 Thread Matt Sicker
Loggers can be reconfigured through JMX. On 9 November 2015 at 19:53, John Lussmyer wrote: > I'm hoping there is an easy to to just change the root level of my logger > configuration on the fly. > I want to be able to provide a configuration option to my users to turn up