v5.1.0
Minor Changes
-
#186
5ac9b52Thanks @js-lowes! - Customize the logger used byRESTDataSource.
By default theRESTDataSourcewill useconsole.
Common use cases would be to override the default logger withpinoorwinston.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
RESTDataSourcewill now use thepinologger instead of theconsolelogger.