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/node/config/functions/logFile.md.
  • English
  • Function: logFile()

    function logFile(runtimeRoot: string, name: string): string;

    Defined in: node/config/index.ts:365

    获取指定服务的持久化日志文件路径(<runtimeRoot>/.sfmc/logs/<name>.log)。

    Parameters

    ParameterTypeDescription
    runtimeRootstring运行时根目录。
    namestring日志文件名或服务标识(可带或不带 .log 后缀)。

    Returns

    string

    日志文件绝对路径。