I am working in the Multiple thread environment where i have multiple thread for the one class which exist in the one package. I am using log4j for logging purpose. Right now I can make a log in the one text file. But I want to make multiple log against my each thread. Like for First Thread my log file will be different , for second thread my log file will be different and so on. The method i have search out for logging is , we can use only one appender for one package in log4j. Can we use multiple appender for one package. Or any other technique which i can use to solve my problem. Here is my log4j properties file
log4j.logger.com.ef.zoomanalyzer=DEBUG, Analyzer_Log
log4j.appender.Analyzer_Log=org.apache.log4j.RollingFileAppender
log4j.appender.Analyzer_Log.File=C:/AnalyzerLog/Analyzer.log
log4j.appender.Analyzer_Log.MaxFileSize=1000KB
log4j.appender.Analyzer_Log.MaxBackupIndex=10
log4j.appender.Analyzer_Log.layout=org.apache.log4j.PatternLayout