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

Function __resetRootLoggerForTest

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

Source from the content-addressed store, hash-verified

422
423/** @internal — vitest only. */
424export async function __resetRootLoggerForTest(): Promise<void> {
425 const globalAny = globalThis as Record<symbol, unknown>;
426 const existing = globalAny[ROOT_SYMBOL];
427 if (existing instanceof RootLoggerImpl) {
428 await existing.__shutdownForTest();
429 }
430 globalAny[ROOT_SYMBOL] = undefined;
431}
432
433export function resolveGlobalLogPath(homeDir: string): string {
434 return join(homeDir, 'logs', 'kimi-code.log');

Calls 1

__shutdownForTestMethod · 0.80

Tested by

no test coverage detected