extend error logger to include more errors