• Can't you just perform an "INSERT INTO <log table>" inside your catch block? That's how I typically log script errors (and script execution for that matter).

    --J