(
method: "fatal" | "error" | "warn" | "info" | "debug" | "trace",
msg: string,
ctx: EventCtx | undefined
)
| 83 | } |
| 84 | |
| 85 | method.apply(this, args); |
| 86 | }, |
| 87 | }, |
| 88 | mixin: traceMixin, |
| 89 | }); |
| 90 | |
| 91 | type ChildBindings = Record<string, unknown>; |
| 92 | type EventCtx = { event: ILogEventName } & Record<string, unknown>; |
| 93 | |
| 94 | /* |
| 95 | * Pino 10 strictly requires (obj, msg) when passing context. We expose a |
| 96 | * (msg, ctx?) shim to keep call sites readable. `child()` is preserved so |
| 97 | * per-request loggers still work; its bindings are unconstrained because |
| 98 | * they're request-scoped metadata, not an event. |