NOTE: I read this question and answer, and it does not work for what I want: Log4Net: Programmatically specify multiple loggers (with multiple file appenders)
I have a WCF service that is a "Question and Answer" style service. It gets inputs and sends outputs. It does not persist much at all.
I need to log each Question and Answer session in a separate file.
I have a single Appender (currently the RollingAppender).
Is there some way to start a new log file for each call to my WCF service?
NOTE: I am using an XML Layout, the idea is that the output of the log can be parsed and displayed graphically (a later feature). Kind of like a "Query Plan". This is another reason that I need them in a separate file.
NOTE: In case another reason is needed, the Log4Net XmlLayoutBase will not drop xml footers until the app closes. Which is not really a planned event for an WCF Service hosted in IIS.