Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要按年将 log4j 日志存储在一个文件夹中。例如:
log4j.appender.File=${log.app.path}/${currentYear}/application.log
但是如何设置 ${currentYear}?谢谢。
像这样。
System.setProperty("currentYear", YOUR YEAR VALUE);