MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / writeLine

Function writeLine

packages/node/src/frameAudit.ts:256–270  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

254 }
255
256 const writeLine = (line: string): void => {
257 try {
258 if (FRAME_AUDIT_LOG_PATH !== null) {
259 appendFileSync(FRAME_AUDIT_LOG_PATH, `${line}\n`, "utf8");
260 if (!FRAME_AUDIT_STDERR_MIRROR) {
261 return;
262 }
263 } else if (!FRAME_AUDIT_STDERR_MIRROR) {
264 return;
265 }
266 process.stderr.write(`${line}\n`);
267 } catch {
268 // Optional diagnostics must never affect runtime behavior.
269 }
270 };
271 const g = globalThis as {
272 __reziFrameAuditSink?: (line: string) => void;
273 __reziFrameAuditContext?: () => Readonly<Record<string, unknown>>;

Callers 1

createFrameAuditLoggerFunction · 0.85

Calls 1

writeMethod · 0.65

Tested by

no test coverage detected