Describe the feature
I'm using @orpc/experimental-pino plugin to get oRPC context in Pino.
In my logs, I'd like to prefix the message with the name of the current oRPC method, eg
[path.myMethod] My log
right now it doesn't seem to be feasible directly from pino, because it needs modifying the plugin. Could we add an option to add this feature on the experimental-pino plugin? eg some kind of pinoPlugin({prefix: (ctx) => [{ctx.method}]})
Additional information
Describe the feature
I'm using @orpc/experimental-pino plugin to get oRPC context in Pino.
In my logs, I'd like to prefix the message with the name of the current oRPC method, eg
[path.myMethod] My logright now it doesn't seem to be feasible directly from pino, because it needs modifying the plugin. Could we add an option to add this feature on the experimental-pino plugin? eg some kind of
pinoPlugin({prefix: (ctx) =>[{ctx.method}]})Additional information