阅读背景:

在log4j API中的FileAppender中存在疑问

来源:互联网 

I have created java program which will process different file which coming to the particular folder.In my program, I need to create log file for each incoming file for logging exception for that file. I have used the below code for that. Problem i am facing is for 1st file it creates log file and logging exception. When second file file comes, it create separate log file and logs the 2nd file's exception and meantime it logs the 2nd file's exception along with first file's exception in first file's log file. I do not want like 2nd file's exception to be append in 1st file's log file. How to do that?I have created java program which will process




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: