For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /reference/sdk/logs/functions/createCallbackSink.md.
  • 简体中文
  • Function: createCallbackSink()

    function createCallbackSink(fn: (entry: LogEntry) => void): Sink;

    Defined in: logs/sink.ts:92

    创建回调转发 sink(用于子进程 stdout 捕获等场景)。

    Parameters

    ParameterType
    fn(entry: LogEntry) => void

    Returns

    Sink