您的位置:首页 > 其它

How to change the name of logfile dynamically using log4j

2009-04-02 16:00 609 查看
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");
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: