I'm sure the Database has Error and event logging tables, If not simple add one.. all that is needed is a autonumber UID, Date & time and a text column..

Add the required DB access code to simple...