Log errors and status

I put class and message in the exception field. Status is
success/failure, depending on whether there were a message or not