To log down the exception, this error logging process should done in a very short time so that it won't affect the system performance or other processes. This can be achieve by saving the exception using a different thread.
In our system logging class, we have the following methods:
- AppendLog - this save the log as "audit log".
- AppendError - this save the exception and the failure point as "error".
- AppendWarning - this save the log as "warning" and it is very useful when the system setting is missing or misconfigure.
To save the log information in another thread, refer to System.Threading.ThreadPool.
Our application log table design:
http://sqllauhw2000.blogspot.com/2012/07/you-need-application-log-for-your.html
No comments:
Post a Comment