LiveKit JS Client SDK - v2.25.0
    Preparing search index...

    Function getLogger

    • Get a named logger. When ctxFn is supplied, every log call automatically:

      1. prepends a [key=value ...] prefix derived from ctxFn() to the message string, so identifiers are visible in browser devtools without expanding the structured context object, and
      2. merges ctxFn() into the structured context passed to any setLogExtension consumer, so ingestion pipelines continue to receive the full metadata unchanged.

      Parameters

      • name: string
      • OptionalctxFn: ContextProvider

      Returns StructuredLogger