A client framework to log client errors on server