A PHP class for logging error messages