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");
log4j.appender.appender_name.File = ${file.name}
and in the code when call PropertyConfigurator.configure, just do System.setProperty("file.name","your path");
相关文章推荐
- How To Change the Partition Column Of A Partitioned Table Using DBMS_Redefinition [ID 846405.1]
- How To Change the Partition Column Of A Partitioned Table Using DBMS_Redefinition [ID 846405.1]
- How to Change the Hostname of a Linux System
- How to Change the Hostname of a Linux System
- How to change the background color of form using C++ - 如何用C++改变窗体的颜色
- How to delete the log file of log4j dynamically
- how to change the default mode of a linux device
- How to change the language of oracle sqlplus from chinese to english in windows(如何将oracle sql plus中的中文变成英文版)
- How to change the language of jDeveloper UI
- How do I change the FROM address to a friendly name?
- Understanding Object Ownership in sql 2000(how to change the schema table name in sql 2000)
- How to open the dialog out of iframe by using jquery dialog
- CodeSnip: How to Get Id of the Record Using ASP.NET and SQL Server 2000
- Java JDBC - How to connect to Oracle using Service Name instead of SID
- How to change the color of a CEikLabel
- How to collect the full path name of the files in ASM diskgroups (文档 ID 888943.1)
- How to change the property of a control from a flowlayoutpanel?
- How to get the Values of Selected Row from a Gridview using ASP.NET
- How to Change the DBID and the DBNAME by using NID [ID 224266.1]
- How to Change the DBID and the DBNAME by using NID