MCPcopy Create free account
hub / github.com/arctic-cli/interface / createLogWriter

Function createLogWriter

packages/arctic/src/auth/antigravity-oauth/debug.ts:227–243  ·  view source on GitHub ↗
(filePath?: string)

Source from the content-addressed store, hash-verified

225}
226
227function createLogWriter(filePath?: string): (line: string) => void {
228 if (!filePath) {
229 return () => {};
230 }
231
232 try {
233 const stream = createWriteStream(filePath, { flags: "a" });
234 stream.on("error", () => {});
235 return (line: string) => {
236 const timestamp = new Date().toISOString();
237 const formatted = `[${timestamp}] ${line}`;
238 stream.write(`${formatted}\n`);
239 };
240 } catch {
241 return () => {};
242 }
243}
244
245export interface AccountDebugInfo {
246 index: number;

Callers 1

debug.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected