@kilog/core
v1.2.0
Published
Core library for kilog structured logging
Maintainers
Readme
@kilog/core
Internal package. Provides log type definitions, storage writing, discovery, DuckDB indexing, querying, differential catch-up, and source-map resolution.
Rarely used directly. For runtime instrumentation see @kilog/runtime-node / @kilog/vite-plugin; for browsing use @kilog/cli / @kilog/web-ui.
Main exports
- Types:
LogEvent/Runtime/EventType/LogLevel/SourceFile/DiscoveredSource - Storage:
createWriter,readLogFile,listRawFiles,dbFilePath,dbFilePathFromDevlogs - Discovery:
findDevlogsDirs,discoverSources,discoverSourceFiles,listRawFilesIn— walks down from a root and enumerates.kilog/directories - Index:
openIndex/closeIndex(ensures schema on open),queryLogs,aggregateLogs,listProjects - Catch-up:
catchUpFile,catchUpIndex— differential indexing based on byte offset + mtime tracked in asourcestable inside each DuckDB - Reindex:
reindex— drops and rebuilds one project's index from raw JSONL - Source maps:
resolveStackFrames
