OpenClaw Audit Logger (audit/adapter-logger.ts)

clawdstrike · packages/adapters/clawdstrike-openclaw/src/audit/adapter-logger.ts · typescript · Apache-2.0
security, infra, database

Bridges audit logging between adapter-core and openclaw's persistence layer.

// Source: https://github.com/backbay-labs/clawdstrike | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import type { AuditEvent, AuditLogger } from "@clawdstrike/adapter-core";
import { InMemoryAuditLogger } from "@clawdstrike/adapter-core";

import type { AuditStore } from "./store.js";

export interface OpenClawAuditLoggerOptions {
  store?: AuditStore;
  maxEvents?: number;
}

/**
 * OpenClawAuditLogger bridges the adapter-core `AuditLogger` interface with
 * openclaw's existing `AuditStore` JSONL persistence layer.
 *
 * It wraps an `InMemoryAuditLogger` for fast in-process queries and
 * optionally forwards events to an `AuditStore` for durable persistence.
 */
export class O

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key