log4j.properties value filter
Hi: I am using log4f for the logging in my app,and I want to add a FileAppender to the log,so I have to set the file:
log4j.appender.fileout.File=E:\myapp\logs\log.html
I wonder if there is any way can replace the absolute file path?
Maybe using something like:
log4j.appender.fileout.Fil开发者_高级运维e={something}\logs\log.html?
Sure it's possible:
log4j.appender.fileout.File=./logs/log.html
Where E:\myapp
is your application path.
精彩评论