Capturing Unhandled exceptions

  • Thread starter Thread starter Kevin S Gallagher
  • Start date Start date
K

Kevin S Gallagher

Just read a posting on "Unhandled Exceptions in services" and wanted to ask;

If you are logging exceptions of this nature do you log to text, XML or
database?
Also if you don't mind saying why you selected it.

Thanks!!!
 
Kevin,

I log to: Event Log , XML File and Database. unlikely for all to fails all
at once.

Lit
 
I do the same.

the local file is last.

if the eventlog fails, or the db call fails, i log the original error in the
xml file AND the logging exception.

but the db is never/seldom down.
 
More clarification.

I log to all destinations every time, I want the logged info to be all in
one place otherwise log info could be scattered. ( excluding when failure )
So if I have an exception I log it in 3 places.

you do need to do some clean up.
XML files have a maximum of entries like 250 exceptions after that I create
a new log file and so on.
DB is truncated every once in a while after backups
Event log backed up then truncated.

but it all depends on your needs.

Lit
 
Back
Top