Click here to Skip to main content
12,554,869 members (55,579 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# VB .NET SQL-Server VB.NET
Hey guys I have a small issue that I was looking for a better way to handle. Ok when my application throws an exception I log these Errors to the database in Error groups defines by a big long if else statement which checks the errormessage ie the stack trace for the specified text and sets the groupId to None, Low, Medium, High or Critical based on the text found. The if else statement is 200 lines long and is getting a bit ridiculous at this stage. Any ideas on how to handle this better? Cheers guys.
Posted 5-Jan-13 5:03am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Take a look at Log4Net[^] or the Windows Event Log[^].

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.161021.1 | Last Updated 5 Jan 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100