added logger object to ApiErrorHandler