Using custom logger (Pino) #565
Answered
by
ardatan
BabakScript
asked this question in
Q&A
-
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.
Answered by
ardatan
Jan 29, 2025
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.
0 replies
Answer selected by
BabakScript
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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