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/getOutputLine.md.
  • 简体中文
  • Function: getOutputLine()

    function getOutputLine(entry: LogEntry, color?: boolean): string;

    Defined in: logs/logger.ts:158

    getOutputLine — 给定 entry,返回它会被 sink 输出的字符串 (供测试/调试)

    Parameters

    ParameterTypeDefault value
    entryLogEntryundefined
    colorbooleantrue

    Returns

    string