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

    Defined in: logs/sink.ts:15

    Properties

    PropertyTypeDescriptionDefined in
    color?boolean是否带 ANSI 颜色 (默认: 自动检测 stdout TTY)logs/sink.ts:17
    stderrForError?booleanerror 级别是否路由到 stderr (默认 true)logs/sink.ts:19
    bare?boolean只输出纯 text,不加时间戳/source/level 前缀。 用于子进程 stdout 被 sfmc 主进程捕获的场景 (避免与 sfmc formatLog 的前缀重复)。 注意:此时级别信息只能通过 stderrForError (error 走 stderr) 传递给 sfmc。logs/sink.ts:25