Open fauna5 opened 1 month ago
This works as expected but i still get some plain log lines as they don't seem to use the logger interface.
What do you mean by plain log lines? Can you explain it a bit more? What do you expect, and what do you get instead?
Is there a way i can access it in my GatewayPlugin?
It is not part of the runtime. It is CLI that creates workers. We get those IDs from process.worker.id
. So you can use the same.
Hi, I need to log in JSON format so i've created a custom logger but am having some issues
1. Still some plain log lines
This works as expected but i still get some plain log lines as they don't seem to use the logger interface.
2. Worker thread
I like the worker id (
Worker graphql-hive/platform#2
above) and i would like to log it in my custom logger. But worker id is not in the context object AFAICS. Is there a way i can access it in myGatewayPlugin
?gateway v1.0.4