MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / logContexts

Function logContexts

examples/binding-resolution/src/util.ts:24–32  ·  view source on GitHub ↗
(
  currentCtx: Context,
  binding: Binding<unknown>,
  logger: Logger = debug,
)

Source from the content-addressed store, hash-verified

22 * @param logger - An optional log function
23 */
24export function logContexts(
25 currentCtx: Context,
26 binding: Binding<unknown>,
27 logger: Logger = debug,
28) {
29 const ownerCtx = currentCtx.getOwnerContext(binding.key);
30 logContext('Owner', ownerCtx, binding, logger);
31 logContext('Resolution', currentCtx, binding, logger);
32}
33
34/**
35 * Log the given context/binding

Callers 6

constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90
constructorMethod · 0.90

Calls 2

logContextFunction · 0.85
getOwnerContextMethod · 0.80

Tested by

no test coverage detected