tags:

views:

39

answers:

1

I'm using TextWriterTraceListener to log error messages to a text file.The TraceOutputFile has been mentioned in the web.config file as "trace.log.txt". The error messages are getting logged to the trace.log.txt. But at times I notice that some files are getting generated randomly under root folder with the exception details instead of logging to the trace.log.txt.

This is not happening in any particular page and hence I am unable to detect the reason as to why these files are getting generated.Ex:14dbc20a-9eb8-4fec-b6bd-54400db2ceatrace.log.txt .

Can u suggest me any circumstances when this might happen?

A: 

I saw something similar when I had two threads trying to write to the log file at the same time whilst using the Enterprise Library logging classes.

serialhobbyist