Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

1 solution

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

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900