madeindjs / nestjs-graphile-worker

A Nest.js wrapper for Graphile Worker
https://www.npmjs.com/package/nestjs-graphile-worker
MIT License
36 stars 14 forks source link

feat: allow custom logger #20

Closed SatyaanM closed 3 months ago

SatyaanM commented 3 months ago

Before, any Logger passed in with configuration gets overwritten by RunnerLogger:

  return {
    ...configuration,
    logger: RunnerLogger,
    events,
  };

After, RunnerLogger is used by default but overwritten by any configuration passed in

return {
    logger: RunnerLogger,
    ...configuration,
    events,
};
madeindjs commented 3 months ago

Thanks, released as v0.8.0 and published on NPM