To further muddy the waters, the log4j-1.2-api module includes the classes org.apache.log4j.config.Log4j1* which provide partial support for Log4j 1.2 properties files.
Gary On Tue, Nov 29, 2016 at 7:48 AM, Apache <[email protected]> wrote: > > > > On Nov 29, 2016, at 8:20 AM, Jochen Wiedmann <[email protected]> > wrote: > > > > On Mon, Nov 28, 2016 at 9:58 PM, Gary Gregory <[email protected]> > wrote: > >> Does this help: > >> https://garygregory.wordpress.com/2016/01/11/changing-log- > levels-in-log4j2/ > > > > Hi, Gary, > > > > considering what's all in Configurator nowadays, I wonder, whether one > > could also add a small compatibility layer for log4j, say > > BasicConfigurator, ProperrtyConfigurator, and DOMConfigurator? I am > > aware, this has been rejected in the past, but I am sure, that the > > required changes would have been different at the time. > > Most of the methods in DOMConfigurator require a LoggerRepository. While > the interface is present in the Log4j 1.2 adapter, it isn’t really > implemented anywhere as it was replaced by the LoggerContext in Log4j 2 and > implementing something to emulate it would be somewhat problematic due to > how Loggers and their configuration are separate in Log4j 2. Furthermore, > the methods that accept configuration would be assuming a Log4j 1.x > configuration. I don’t believe the support for that is implemented yet. > > PropertyConfigurator would also require a LoggerRepository. It also > requires Log4j 1.x format configuration files. Support for that is not > fully implemented yet. > > BasicConfigurator only has 3 methods, one of which is implemented. > configure(Appender appender) requires a Log4j 1.x Appender, which Log4j 2 > doesn’t currently support. resetConfiguration() could be easily implemented. > > Ralph > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- E-Mail: [email protected] | [email protected] Java Persistence with Hibernate, Second Edition <https://www.amazon.com/gp/product/1617290459/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1617290459&linkCode=as2&tag=garygregory-20&linkId=cadb800f39946ec62ea2b1af9fe6a2b8> <http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1617290459> JUnit in Action, Second Edition <https://www.amazon.com/gp/product/1935182021/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182021&linkCode=as2&tag=garygregory-20&linkId=31ecd1f6b6d1eaf8886ac902a24de418%22> <http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1935182021> Spring Batch in Action <https://www.amazon.com/gp/product/1935182951/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=1935182951&linkCode=%7B%7BlinkCode%7D%7D&tag=garygregory-20&linkId=%7B%7Blink_id%7D%7D%22%3ESpring+Batch+in+Action> <http:////ir-na.amazon-adsystem.com/e/ir?t=garygregory-20&l=am2&o=1&a=1935182951> Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory
