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/interfaces/Sink.md.
  • 简体中文
  • Interface: Sink

    Defined in: logs/types.ts:26

    Sink — 日志输出的抽象目标 (stdout / file / memory buffer / 自定义) write() 接收原始 entry 和已格式化字符串,实现自行选择使用哪个。

    Extended by

    Methods

    write()

    write(entry: LogEntry, formatted: string): void;

    Defined in: logs/types.ts:27

    Parameters

    ParameterType
    entryLogEntry
    formattedstring

    Returns

    void