I have a server application that processes messages. We need to keep a separate log file for each message process. We have used Adam's answer to a relevant question: Logging to an individual log file for each individual thread
The only problem is that when the process is done, the repository needs to be disposed. We call
log4net.LogManager.ShutdownRepository(logFileName + "Repository");
when the process ends, but the LogManager still references the created repository. So, every call adds a new repository, thus causing increasing memory.
Is there a way to properly dispose the repository? Sorry for opening a new question, I don't have enough rep to comment on an answer.