User-1869549859 posted
Hi,
Problem Definition:
I have an asp.net application when i am using microsft enterprise library for logging v4.1.
I found that a guid is added to the name of my file. I did googling and came to know that because of the following reasons it is happening:
A RollingFileTraceListener instance "owns" the log file it is writing to and locks it for exclusive write access when it writes the first log entry. It keeps the file locked until the instance is disposed. If another RollingFileTraceListener
instance is created that points to the same file, before the first instance is disposed, the second instance cannot open this file for writing and will write to a new file with a GUID prepended to its name.
So my question is how i can overcome this issue?
Please do reply. Thanks in advance.