Log4j2 get Appender from XML config file and dynamically give it a file to write to

后端 未结 0 1387
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-02 19:23

I was using Log4j v.1 and i want to upgrade to log4j v.2. I had a function that would check if i want to also log to a file, and if so, i would take the FA Appender i have i

相关标签:
回答
  • 消灭零回复
提交回复
热议问题