Simple logger for client-side errors