Using custom logger (Pino) #565
-
Hi guys, I'm trying to use a Pino logger with a graphql-hive gateway. I added a logger like the below to my gatewayConfig based on this doc:
But it seems it's not working, and adding "log" and "child" is mandatory in the types. What else should I add to this custom logger? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It won't work because you need to implement the Logger interface fully together with |
Beta Was this translation helpful? Give feedback.
It won't work because you need to implement the Logger interface fully together with
child
method.You can see our default logger implementation as a reference here;
https://github.com/ardatan/graphql-mesh/blob/master/packages/legacy/utils/src/logger.ts