Re: Programmatically Modifying the Current Configuration after Initialization

2018-02-09 Thread Mike Kienenberger
If you don’t like something in the way it >> works you can copy it, modify it, give it a new Plugin name and then >> configure it to be used. >> >> Ralph >> >>> On Feb 9, 2018, at 3:02 PM, Mike Kienenberger wrote: >>> >>> Ralph, >>>

Re: Programmatically Modifying the Current Configuration after Initialization

2018-02-09 Thread Mike Kienenberger
eally wouldn’t recommend calling start. In fact, I really think the > approach of copying the current configuration and using the > CompositeConfiguration is the safest way to accomplish what you are wanting. > > Ralph > > > >> On Feb 9, 2018, at 10:58 AM, Mike Ki

Re: Programmatically Modifying the Current Configuration after Initialization

2018-02-09 Thread Mike Kienenberger
e configuration error } } On Fri, Feb 9, 2018 at 12:37 PM, Ralph Goers wrote: > Would you mind creating a Jira issue requesting that the clone method, or > some variation of it, be added to Configuration implementations? > > Ralph > >> On Feb 9, 2018, at 9

Re: Programmatically Modifying the Current Configuration after Initialization

2018-02-09 Thread Mike Kienenberger
mpositeConfiguration). >> >> Ralph >> >>> On Feb 9, 2018, at 9:03 AM, Mike Kienenberger wrote: >>> >>> Thanks, Ralph, >>> >>> While that does work (tested) and could be useful in some instances, >>> it would require that we e

Re: Programmatically Modifying the Current Configuration after Initialization

2018-02-09 Thread Mike Kienenberger
} > specificConfig.setLevel(level); > loggerContext.updateLoggers(); > > see attachment for our full Log4j2Util code. > > Regards, > Volker > > > > 2018-02-08 21:28 GMT+01:00 Mike Kienenberger : >> >> As others have reported in years past, the

Re: Programmatically Modifying the Current Configuration after Initialization

2018-02-09 Thread Mike Kienenberger
4j2.xml”); > > This will look for a file named app-log4j2.xml on the class path. > > Ralph > >> On Feb 8, 2018, at 1:28 PM, Mike Kienenberger wrote: >> >> As others have reported in years past, the examples in the docs for >> >> Programmatically Modifying

Re: Programmatic disabling/enabling loggers

2018-02-09 Thread Mike Kienenberger
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. > > A

Programmatically Modifying the Current Configuration after Initialization

2018-02-08 Thread Mike Kienenberger
As others have reported in years past, the examples in the docs for Programmatically Modifying the Current Configuration after Initialization are out of date. They don't compile. They don't work (affect the existing logging) even if you do fix the errors. Here's my situation: I am working in