How to Add Context Support in Pino for Automatic Logging of userId and userEmail?
Unanswered
Scottish Fold posted this in #help-forum

Scottish FoldOP
Hi everyone!
I'm working on a project where I use Pino for logging. I've run into an issue: I want to include user-specific data, like userId and userEmail, automatically in every log entry without having to pass them manually in every logger call.
Is it possible to add context support in Pino so that I can set these details once in a single place, and they will be appended to all logs automatically? I’d appreciate any examples or guidance!
Thanks in advance for your help!
I'm working on a project where I use Pino for logging. I've run into an issue: I want to include user-specific data, like userId and userEmail, automatically in every log entry without having to pass them manually in every logger call.
Is it possible to add context support in Pino so that I can set these details once in a single place, and they will be appended to all logs automatically? I’d appreciate any examples or guidance!
Thanks in advance for your help!