You can use system properties in log4j configuration files using a ${variablename} syntax.
Can you include Eclipse variables (like the project name) and Maven variables (like the artifact ID) in there too, and have them substituted during the respective build?
本文介绍如何在Maven项目中使用资源过滤功能来替换log4j配置文件中的变量,包括Maven属性如${project.artifactId}

3629






