|
发表于 2020-8-21 16:00:02
|
显示全部楼层
solution:
1. create several "log4j.properties"(They can have different names), in which we can define different files.
2. In the thread which needs different log file, add this at first:
PropertyConfigurator.configure("thread1\\loginLOG.properties"); |
|