FlowGuard API - v1.2.0-rc.2
    Preparing search index...

    Interface LogEntry

    A structured log entry passed to the sink.

    Maps 1:1 to the OpenCode SDK's client.app.log() body shape: { service, level, message, extra? }

    The sink receives all fields so it can delegate to the SDK with the correct level — not a pre-formatted string that loses level information.

    interface LogEntry {
        level: "error" | "info" | "debug" | "warn";
        service: string;
        message: string;
        extra?: Record<string, unknown>;
    }
    Index

    Properties

    level: "error" | "info" | "debug" | "warn"

    Log level: "debug" | "info" | "warn" | "error" (never "silent").

    service: string

    Caller identity (e.g. "plugin", "policy", "audit").

    message: string

    Human-readable message.

    extra?: Record<string, unknown>

    Optional structured metadata.