MCPcopy Index your code
hub / github.com/codeaashu/claude-code / createJsonlWriter

Function createJsonlWriter

src/utils/errorLogSink.ts:46–59  ·  view source on GitHub ↗
(options: {
  writeFn: (content: string) => void
  flushIntervalMs?: number
  maxBufferSize?: number
})

Source from the content-addressed store, hash-verified

44}
45
46function createJsonlWriter(options: {
47 writeFn: (content: string) => void
48 flushIntervalMs?: number
49 maxBufferSize?: number
50}): JsonlWriter {
51 const writer = createBufferedWriter(options)
52 return {
53 write(obj: object): void {
54 writer.write(jsonStringify(obj) + '\n')
55 },
56 flush: writer.flush,
57 dispose: writer.dispose,
58 }
59}
60
61// Buffered writers for JSONL log files, keyed by path
62const logWriters = new Map<string, JsonlWriter>()

Callers 1

getLogWriterFunction · 0.85

Calls 1

createBufferedWriterFunction · 0.85

Tested by

no test coverage detected