In the context of changing the logging level to OFF during the runtime, what happens to the events that are already buffered ?
I have a situation where I’d turn off the logging at runtime and enable back again. All my log events are buffered (size based), I’d like to force flush them before I turn off the logging. — how can I achieve this? Best, Chandra On 19 Feb 2018, 2:07 PM +0530, Tungathurthi, Chandra Kiran Bharadwaj <chandra.tungathur...@rwth-aachen.de>, wrote: > Oh well, OFF might just work but, I'd have to remember the logging level for > enabling it again :-/ > > > > On Fri, Feb 9, 2018 at 9:07 PM +0530, "Mike Kienenberger" > <mkien...@gmail.com<mailto:mkien...@gmail.com>> wrote: > > > Do you need to disable them or just change the logging level to OFF? > > On Fri, Feb 9, 2018 at 12:17 AM, Chandra > wrote: > > Guys, I have a requirement for the loggers to be disabled and enabled > > during my runtime. I’m assuming this can be done by Filters somehow, will > > need to check the doc. > > > > Anyone has a better alternatives? > > > > > > Thanks, > > > > Best, > > Chandra > > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org > For additional commands, e-mail: log4j-user-h...@logging.apache.org > >