• Returns a function that logs an error using the provided logger, or a console logger if one was not provided.

    Returns core.ErrorHandler