Application Error Logging Example This code contains simple demonstration of how to log application errors to a database for later inspection.