简体   繁体   中英

Are log4j.properties file includes supported?

Does log4j support properties files includes - like commons configuration - so I could include one file from another, overriding properties as appropriate?

I have tried doing it, and it doesn't seem to work. Is there an alternate way to achieve the same reuse?

No, it doesn't. All configuration must go into a single log4j.properties or log4j.xml file.

您可以将XML实体扩展用作log4j.xml中的包含机制。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM