NOTE. I read this question and answer and it does not work for what I want: Log4Net: programmatically specify multiple registrars (with multiple file applications)
I have a WCF service, which is a Q & A style service. It receives inputs and sends outputs. It's not that much.
I need to write each Q&A session to a separate file.
I have one Appender (currently RollingAppender).
Is there a way to run a new log file for every call to my WCF service?
NOTE. I use an XML layout, the idea is that the log output can be parsed and displayed graphically (a later function). A view like the Query Plan. This is another reason I need them in a separate file.
NOTE. If another reason is needed, Log4Net XmlLayoutBase will not drop the xml footers until the application closes. This is not a scheduled event for a WCF hosted in IIS.
source share