(Windows) Exception Handling: to Event Log or to Database?
问题 I've worked in shops where I've implemented Exception Handling into the event log, and into a table in the database. Each have their merits, of which I can highlight a few based on my experience: Event Log Industry standard location for exceptions (+) Ease of logging (+) Can log database connection problems here (+) Can build report and viewing apps on top of the event log (+) Needs to be flushed every so often, if alot is reported there (-) Not as extensible as SQL logging [add custom fields