@salesforce/agents
    Preparing search index...

    Function msgCtx

    • Build a msg-ctx log message: the static message prefix followed by | and the rendered context. When no field renders to context, the bare message is returned so there is no dangling |. Prefer a CtxLogger instance, whose level methods render and log in one call so the fields object is passed exactly once and cannot drift from the message.

      Parameters

      • message: string
      • fields: Record<string, unknown>

      Returns string