且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何检查log4j2是否已配置

更新时间:2023-01-10 16:55:45

我最后创建了自己的ConfigurationFactory并注册

I ended up creating my own ConfigurationFactory and register it with

-Dlog4j.configurationFactory

这样你的ConfigurationFactory会知道是否已被调用。

That way your ConfigurationFactory will know whether it's been invoked yet or not.