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

    function stripBdsLogPrefix(line: string): string;

    Defined in: logs/format.ts:49

    去掉 BDS 自带的 [时间 等级] 前缀,使正文从真正的有效消息开始。 具有幂等性:若已剥离过则原样返回。

    Parameters

    ParameterTypeDescription
    linestring原始日志文本行。

    Returns

    string

    剥离前缀后的日志正文。