How to change the name of logfile dynamically using log4j

来源:互联网 发布:数据挖掘 潜在用户 编辑:程序博客网 时间:2024/04/29 08:42

Quote from: http://www.theserverside.com/discussions/thread.tss?thread_id=42709

 

log4j.appender.appender_name.File = ${file.name}

and in the code when call PropertyConfigurator.configure, just do System.setProperty("file.name","your path");

原创粉丝点击