npm i yab-fetch-logger
must be the last middleware in chain.
import { createFetch } from 'yab-fetch';
import { createLogger } from 'yab-fetch-logger';
const logger = createLogger({
// options
});
const request = createFetch({
middleware: [logger],
});