MCPcopy
hub / github.com/codedogQBY/ReadAny / appendStructuredLog

Function appendStructuredLog

packages/core/src/feedback/feedback-service.ts:167–174  ·  view source on GitHub ↗
(
  event: string,
  data?: Record<string, unknown>,
  level: "info" | "warn" | "error" = "info",
)

Source from the content-addressed store, hash-verified

165
166/** Capture a structured app event into the feedback log buffer. */
167export function appendStructuredLog(
168 event: string,
169 data?: Record<string, unknown>,
170 level: "info" | "warn" | "error" = "info",
171): void {
172 const payload = data ? ` ${formatLogArg(data)}` : "";
173 appendLog(`[${level}] [event:${event}]${payload}`);
174}
175
176/**
177 * Sanitize a single log line to redact sensitive information before

Callers 4

submitFeedbackFunction · 0.85
refreshFeedbackStatusFunction · 0.85

Calls 2

formatLogArgFunction · 0.85
appendLogFunction · 0.85

Tested by

no test coverage detected