A lightweight client-side error logger