Error logging in a database / case system

If you are referring to errors generated from your web site, you might
want to look at the exception logger plugin:

It logs all exceptions to a handy web based interface complete with
RSS feeds. It might be a good starting point.