英文:
extend log4j2.xml and split it when it become very long
问题
My log4j2.xml file becomes very lengthy, so I want to open a new XML file to add the appenders I want.
I tried
<import resource="log4j2_2.xml"/>
inside the Configuration tag, but it does not work.
Any ideas?
英文:
My log4j2.xml file becomes very lenghthy so I want to open a new xml file to add the appenders I want,
I tried
<import resource="log4j2_2.xml"/>
inside the Configuration tag but it does not work
any ideas?
答案1
得分: 0
您可以创建多个配置文件,并通过将它们作为逗号分隔的列表指定在Log4J.configurationFile属性中来合并它们。
英文:
You can create multiple configuration files and merge the by specifying them as a comma separated list in the Log4J.configurationFile property.
专注分享java语言的经验与见解,让所有开发者获益!
评论