You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great to have a context prop on the instance, which accepts a Record<string, unknown>, which is then appended to the args argument (or the logObject) of any message logged.
This way it would be trivial to bind a logger to an http request, and add a trace-id to every logged message, or details about the authenticated user.
Describe the feature
It would be great to have a
context
prop on the instance, which accepts aRecord<string, unknown>
, which is then appended to theargs
argument (or the logObject) of any message logged.This way it would be trivial to bind a logger to an http request, and add a trace-id to every logged message, or details about the authenticated user.
So basically;
Additional information
The text was updated successfully, but these errors were encountered: