use logger to log errors