Re: Programmatically Modifying the Current Configuration after Initialization

2018-02-09 Thread Mike Kienenberger
>>> { >>>>> // TODO: handle configuration error >>>>> } >>>>> } >>>>> >>>>> On Fri, Feb 9, 2018 at 12:37 PM, Ralph Goers <ralph.go...@dslextreme.com> >>>>> wrote: >>>

Re: Programmatically Modifying the Current Configuration after Initialization

2018-02-09 Thread Ralph Goers
gt;>>>>> >>>>>> Doh! I thought you had provided me with the magic bullet. :) >>>>>> >>>>>> Ok. I'll back to programmically registering info read from my >>>>>> XmlConfiguration into the active Context. >>>>>>

Re: Programmatically Modifying the Current Configuration after Initialization

2018-02-09 Thread Ralph Goers
gt;>>> wrote: >>>>>> It occurs to me that there is a problem with my suggest in that you >>>>>> cannot create a new Configuration using the currently active >>>>>> configuration as that will cause problems. The current configuration >>&

Re: Programmatically Modifying the Current Configuration after Initialization

2018-02-09 Thread Mike Kienenberger
t; >>>>>> wrote: >>>>>> >>>>>> If you want to add to their configuration then you should use a >>>>>> CompositeConfiguration. In that case I would get the current >>>>>> configuration, create your own Configuration, add them both

Re: Programmatically Modifying the Current Configuration after Initialization

2018-02-09 Thread Ralph Goers
s, >>>>>> it would require that we extract and keep synced the logging >>>>>> configuration from EVIL.jar, then append our own changes to it. I can >>>>>> see how this will be helpful when I'm doing development in this >>>>>> enviro

Re: Programmatically Modifying the Current Configuration after Initialization

2018-02-09 Thread Ralph Goers
: >>>>>> If you want to replace the existing configuration you should be able to >>>>>> do: >>>>>> >>>>>> Configurator.initialize(“MyApp”, “app-log4j2.xml”); >>>>>> >>>>>> This will look for a

Re: Programmatically Modifying the Current Configuration after Initialization

2018-02-09 Thread Mike Kienenberger
M, Ralph Goers <ralph.go...@dslextreme.com> >>>>> wrote: >>>>>> If you want to replace the existing configuration you should be able to >>>>>> do: >>>>>> >>>>>> Configurator.initialize(“MyApp”, “a

Re: Programmatically Modifying the Current Configuration after Initialization

2018-02-09 Thread Ralph Goers
alph Goers <ralph.go...@dslextreme.com> >>>> wrote: >>>>> If you want to replace the existing configuration you should be able to >>>>> do: >>>>> >>>>> Configurator.initialize(“MyApp”, “app-log4j2.xml”); >>>>&

Re: Programmatically Modifying the Current Configuration after Initialization

2018-02-09 Thread Mike Kienenberger
existing configuration you should be able to do: >>>> >>>> Configurator.initialize(“MyApp”, “app-log4j2.xml”); >>>> >>>> This will look for a file named app-log4j2.xml on the class path. >>>> >>>> Ralph >>>> >>

Re: Programmatically Modifying the Current Configuration after Initialization

2018-02-09 Thread Mike Kienenberger
me, specificConfig); > } > specificConfig.setLevel(level); > loggerContext.updateLoggers(); > > see attachment for our full Log4j2Util code. > > Regards, > Volker > > > > 2018-02-08 21:28 GMT+01:00 Mike Kienenberger <mkien...@gmail.com>: >> >

Re: Programmatically Modifying the Current Configuration after Initialization

2018-02-09 Thread Ralph Goers
>> Configurator.initialize(“MyApp”, “app-log4j2.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 <mkien...@gmail.com> wrote

Re: Programmatically Modifying the Current Configuration after Initialization

2018-02-09 Thread Ralph Goers
t;> Ralph >> >>> On Feb 8, 2018, at 1:28 PM, Mike Kienenberger <mkien...@gmail.com> wrote: >>> >>> As others have reported in years past, the examples in the docs for >>> >>> Programmatically Modifying the Current Configuration after Initializati

Re: Programmatically Modifying the Current Configuration after Initialization

2018-02-09 Thread Mike Kienenberger
itialize(“MyApp”, “app-log4j2.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 <mkien...@gmail.com> wrote: >> >> As others have reported in years past, the examples in the

Re: Programmatically Modifying the Current Configuration after Initialization

2018-02-09 Thread Ralph Goers
enberger <mkien...@gmail.com > <mailto:mkien...@gmail.com>>: > 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 wor

Re: Programmatically Modifying the Current Configuration after Initialization

2018-02-09 Thread Volker Weber
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

Re: Programmatically Modifying the Current Configuration after Initialization

2018-02-08 Thread Ralph Goers
> 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. > > He

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