MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / getRootInternal

Function getRootInternal

packages/agent-core/src/logging/logger.ts:262–269  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

260}
261
262function getRootInternal(): RootLoggerImpl {
263 const globalAny = globalThis as Record<symbol, unknown>;
264 const existing = globalAny[ROOT_SYMBOL];
265 if (existing instanceof RootLoggerImpl) return existing;
266 const fresh = new RootLoggerImpl();
267 globalAny[ROOT_SYMBOL] = fresh;
268 return fresh;
269}
270
271export function getRootLogger(): RootLogger {
272 return getRootInternal();

Callers 4

closeFunction · 0.85
getRootLoggerFunction · 0.85
flushDiagnosticLogsFunction · 0.85
emitAtMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected