如果直接写:
#this log file will be stored in web server's /bin directory,modify to your path which want to store.
log4j.appender.R.File= WebRoot/logFile/ssh_jzChen.log
那么生成的日志文件会在tomcat/bin/目录下
我想要的是生成到相对路径的文件夹下,但是不是写绝对路径。
我该如何写?
...全文
35410打赏收藏
如何让 log4j日志生成到指定的文件夹下
如果直接写: #this log file will be stored in web server's /bin directory,modify to your path which want to store. log4j.appender.R.File= WebRoot/logFile/ssh_jzChen.log 那么生成的日志文件会在tomcat/bin/目录下 我想要的是生成到相对路径的文件夹下,但是不是写绝对路径。 我该如何写?