MCPcopy Create free account
hub / github.com/altic-dev/Pilot / LogData

Interface LogData

src/lib/logger.ts:3–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1type LogLevel = "info" | "warn" | "error" | "debug";
2
3interface LogData {
4 level: LogLevel;
5 message: string;
6 timestamp: string;
7 data?: unknown;
8 error?: {
9 message: string;
10 stack?: string;
11 cause?: unknown;
12 };
13}
14
15function formatLog(level: LogLevel, message: string, data?: unknown): LogData {
16 const logData: LogData = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected