在属性文件中创建动态路径?
log4j.rootLogger=INFO,CONSOLE,R,TTCC
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.TTCC=org.apache.log4j.RollingFileAppender
log4j.appender.TTCC.File=c:\users\jim.woods\Desktop\AutoFramework\AutoFrameworklogFileSystemTime.log
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern= %5p %m%n
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%c %m%n
log4j.appender.TTCC.layout=org.apache.log4j.TTCCLayout
log4j.appender.TTCC.layout.DateFormat=ISO8601
如何将以下内容转换为动态目录而不是绝对目录? log4j.appender.TTCC.File = C:\用户\ jim.woods \桌面\ AutoFramework \ AutoFrameworklogFileSystemTime.log
实施例: log4j.appender.TTCC.File =〜\〜\〜\〜\ AutoFramework \ AutoFrameworklogFileSystemTime.log