MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / call

Function call

apps/api/src/config/logger/logger.ts:85–95  ·  view source on GitHub ↗
(
    method: "fatal" | "error" | "warn" | "info" | "debug" | "trace",
    msg: string,
    ctx: EventCtx | undefined
  )

Source from the content-addressed store, hash-verified

83 }
84
85 method.apply(this, args);
86 },
87 },
88 mixin: traceMixin,
89});
90
91type ChildBindings = Record<string, unknown>;
92type 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.

Callers 1

wrapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected