nestjs-graphile-worker icon indicating copy to clipboard operation
nestjs-graphile-worker copied to clipboard

Customise log verbosity

Open reeshabhranjan opened this issue 1 year ago • 1 comments

How do I tweak the log verbosity? Everytime it prints the entire payload. I want some customisation in this.

reeshabhranjan avatar Sep 17 '24 19:09 reeshabhranjan

We use the Nest.JS bultin logger , and every usage of the logger use the Debug level. Which mean that it'll respect your Nest.JS global configuration for the log settings, and you can disable debug log.

But I see we create our custom logger here

https://github.com/madeindjs/nestjs-graphile-worker/blob/ee52244f1a8f2ded06e54412a4f367b9f1587336/src/graphile-worker.module.ts#L115

Maybe we can add a parameters to the module option to let you inject your own logger

madeindjs avatar Sep 17 '24 21:09 madeindjs