INNER CODE UNIT · TypeScript

time

open-gitagent/clawless · src/audit.ts:137

        const time = e.timestamp.slice(11, 19); // HH:mm:ss
        const lvl = (e.level ?? 'info').toUpperCase().padEnd(5);
        let line = `[${time}] ${lvl} ${e.event.padEnd(16)} ${e.detail}`;
        if (e.meta) line += `  ${JSON.stringify(e.meta)}`;
        lines.push(line);
      }
    }

    return lines.join('\n');
  }

  /** Export all entries as indented JSON. */
  toJSON(): string {
    return JSON.stringify(
      {
        exported: new Date().toISOString(),
        count: this.entries.length,
        entries: this.entries,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…