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

Function baseEntry

packages/agent-core/test/logging/formatter.test.ts:16–23  ·  view source on GitHub ↗
(overrides: Partial<LogEntry> = {})

Source from the content-addressed store, hash-verified

14const FIXED_TIME = Date.UTC(2026, 4, 19, 10, 12, 30, 123);
15
16function baseEntry(overrides: Partial<LogEntry> = {}): LogEntry {
17 return {
18 t: FIXED_TIME,
19 level: 'info',
20 msg: 'diagnostic event',
21 ...overrides,
22 };
23}
24
25describe('formatter — logfmt rendering', () => {
26 it('renders timestamp, level, msg without ctx', () => {

Callers 1

formatter.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected