In our application if an error occurred, we log the error in the text file (i.e. Rolling Flat File Trace Listener) and send email (i.e. Email Trace Listener) using Logging Application Block of the enterprise library.
To accomplish this task, we have used Logger.Write(LogEntry logEntry) method.
Now when an error occured, the above Write method takes around 1 second to exectue for the first time. For second time, it takes around 2-3 seconds. For third time, it takes around 6-7 seconds. So execution time for this method increases every time, as and
when it executes.
But suppose, if i remove Email Trace Listener from our logging, every time it executes within second.
So may be there is some issue with Email Trace Listener. And it affects the performance of our application as and when error occurred.
Please let me know how to resolve this issue, so that every time it executes within second.
Please reply ASAP and thanks for your help in advance.