开发者

log4j.properties value filter

开发者 https://www.devze.com 2023-01-22 00:30 出处:网络
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:

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消