Simplified error handler in logging setup