There is now some days that I'm spending on java
I have read several times the doc
The approach is relatively easy if you decide to work on the basis with an .xml file.
But in case you want to create the configuration and adapt through java, it is a bit more complicated.
Below the code I could manage for now.
I didn't succeed to reconfigure the log level
Each time depth is stopping on error level
2017-03-15 23:24:27,248 [main] ERROR: This is Logger for 1 Error
2017-03-15 23:24:27,256 [main] ERROR: This is Logger 1 Error
Can you please help to specify how to reload the programmed log4j2 configuration ?