Hi Gurminder,
I would suggest you to log errors in the System EventLog.
Logging errors to event log is faster than logging errors to a text file.
But if you application is yet to be deployed to production server.
I would suggest you to go for logging errors to text file and once you are
done with fixing
regularly occuring errors you will be limiting the errors that will be
logged to the text file.
then you can move the error logging to the System Event log.
Final conclusion: System Event logging is the best recommended if you
consider Performance, concurrency issues, production
scenarious, easy of data analysis & purging operations.
and also you have various 3rd party , some free tools for analysing the
system Event logs.
[For you knowledge: you can read the Microsoft - Improving .NET Application
Performance and Scalability.pdf ebook published by microsoft which
is available for free download . This book clearly mentions how to log
errors and where and which is the best one to go for.]
you can download the book from here.
http://www.microsoft.com/downloads/...4D-F30E-4E72-B531-75384A0F1C47&displaylang=en
Thanks
Raghavendra
Gurminder said:
Hi,
Can anybody guide which approach is the best for logging exceptions ?
The solution should consider performance, concurrency issues, production
scenarious, easy of data analysis & purging operations.
Logging Exceptions to,
1. Text Files
2. SQL Server
3. MSMQ
or, suggest any other ...
Regds
Gurminder