Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 61121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:16:09+00:00 2026-05-10T18:16:09+00:00

I’ve worked in shops where I’ve implemented Exception Handling into the event log, and

  • 0

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 like method name in SQL] (-)

SQL/Database

  • Can handle large volumes of data (+)
  • Can handle rapid volume inserts of exceptions (+)
  • Single storage location for exception in load balanced environment (+)
  • Very customizable (+)
  • A little easier to build reporting/notification off of SQL storage (+)
  • Different from where typical exceptions are stored (-)

Am I missing any major considerations?

I’m sure that a few of these points are debatable, but I’m curious what has worked best for other teams, and why you feel strongly about the choice.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T18:16:10+00:00Added an answer on May 10, 2026 at 6:16 pm

    You need to differentiate between logging and tracing. While the lines are a bit fuzzy, I tend to think of logging as ‘non developer stuff’. Things like unhandled exceptions, corrupt files, etc. These are definitely not normal, and should be a very infrequent problem.

    Tracing is what a developer is interested in. The stack traces, method parameters, that the web server returned an HTTP Status of 401.3, etc. These are really noisy, and can produce a lot of data in a short amount of time. Normally we have different levels of tracing, to cut back the noise.

    For logging in a client app, I think that Event Logs are the way to go (I’d have to double check, but I think ASP.NET Health Monitoring can write to the Event Log as well). Normal users have permissions to write to the event log, as long as you have the Setup (which is installed by an admin anyway) create the event source.

    Most of your advantages for Sql logging, while true, aren’t applicable to event logging:

    • Can handle large volumes of data: Do you really have large volumes of unhandled exceptions or other high level failures?
    • Can handle rapid volume inserts of exceptions: A single unhandled exception should bring your app down – it’s inherently rate limited. Other interesting events to non developers should be similarly aggregated.
    • Very customizable: The message in an Event Log is pretty much free text. If you need more info, just point to a text or structured XML or binary file log
    • A little easier to build reporting/notification off of SQL storage: Reporting is built in with the Event Log Viewer, and notification systems are, either inherent – due to an application crash – or mixed in with other really critical notifications – there’s little excuse for missing an Event Log message. For corporate or other networked apps, there’s a thousand and 1 different apps that already cull from Event Logs for errors…chances are your sysadmin is already using one.

    For tracing, of which the specific details of an exception or errors is a part of, I like flat files – they’re easy to maintain, easy to grep, and can be imported into Sql for analysis if I like.

    90% of the time, you don’t need them and they’re set to WARN or ERROR. But, when you do set them to INFO or DEBUG, you’ll generate a ton of data. An RDBMS has a lot of overhead – for performance (ACID, concurrency, etc.), storage (transaction logs, SCSI RAID-5 drives, etc.), and administration (backups, server maintenance, etc.) – all of which are unnecessary for trace logs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 272k
  • Answers 272k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer boost.test can be used with or without a main(). look… May 13, 2026 at 1:59 pm
  • Editorial Team
    Editorial Team added an answer Your scanf reads the whole string. It's the following switch… May 13, 2026 at 1:59 pm
  • Editorial Team
    Editorial Team added an answer In general, when someone uses your control they are going… May 13, 2026 at 1:59 pm

Related Questions

I've got a string that has curly quotes in it. I'd like to replace
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have a French site that I want to parse, but am running into
I have text I am displaying in SIlverlight that is coming from a CMS

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.