Skip to content

v5.1.0

Choose a tag to compare

@github-actions github-actions released this 24 Apr 19:27
· 179 commits to main since this release
49a0bb9

Minor Changes

  • #186 5ac9b52 Thanks @js-lowes! - Customize the logger used by RESTDataSource.
    By default the RESTDataSource will use console.
    Common use cases would be to override the default logger with pino or winston.

    E.g.

    const pino = require('pino');
    const loggerPino = pino({});
    const dataSource = new (class extends RESTDataSource {})({
      logger: loggerPino,
    });

    In the example above, all logging calls made by the RESTDataSource will now use the pino logger instead of the console logger.