JAVA开发 资料收集之 log4j日志路径的设置

The conclusion comes like that:

The current path (./)is stands for the project location.(see pic 1: Location)

 

How can we set the path of the log file accurately in log4j.properties?

Such as there is a web project which I created in eclipse.

Detail info like following:

pic 1

And we set the log path like following in log4j.properties:

log4j.appender.R.File=./testutilities.log

Then we get the testutilities.log in the following path(path1 in pic2)

If we set the log path like this:

log4j.appender.R.File=./RCA2CRM_/testutilities/testutilities.log then path2(in pic2)

pic 2

 

 

转载于:https://www.cnblogs.com/cici-new/archive/2012/11/23/2783725.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值