update logger.error usage