Client + Server side error logging functionality