MCPcopy
hub / github.com/FoalTS/foal / initLogContext

Method initLogContext

packages/core/src/core/logging/logger.ts:20–24  ·  view source on GitHub ↗
(callback: () => void)

Source from the content-addressed store, hash-verified

18 }
19
20 initLogContext(callback: () => void): void {
21 this.contextStorage.run({}, () => {
22 this.errorContextStorage.run({}, callback);
23 });
24 }
25
26 addLogContext(context: Record<string, any>): void {
27 const store = this.contextStorage.getStore();

Callers 4

logger.spec.tsFile · 0.80
createAppFunction · 0.80
runMethod · 0.80
attachHttpServerFunction · 0.80

Calls 1

runMethod · 0.45

Tested by

no test coverage detected