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

    Type Alias LogSink

    LogSink: (entry: LogEntry) => Promise<void> | void

    Structured output sink.

    All sinks are async to support file I/O and network calls. Errors must be handled internally — the logger never throws.

    In production:

    • file-sink: writes to {workspace}/.opencode/logs/flowguard-{date}.log
    • ui-sink: delegates to client.app.log()

    Type Declaration

      • (entry: LogEntry): Promise<void> | void
      • Parameters

        Returns Promise<void> | void