Tracing to database

  • Thread starter Thread starter Fresno Bob
  • Start date Start date
F

Fresno Bob

I was looking at tracing and the way you can write to an axd file. Is there
any way of writing this information to a database but only when the page
errors.
 
Ha ha :) I was thinking - write to db if you can. Just because a given line
of code generates an SqlException doesn't mean the database can't be written
to.
 
I've observed most developers write their logs to the file system directly
as it doesn't get any more fundamental than that. Some mail themselves an
alert. All the code snippets are out there to be found regardless of where
you want to put it.

In fact I just had a clever thought about logging the exceptions to a blog
which is where the word came from in the first place. Hmmmm not a bad
concept; everything old is new again.
 
Log4Net is a good choice I would suppose. Does most of the stuff to do and
its powerful, extensible and multi-threaded.
 
Back
Top