Documentation - v7.4.0
    Preparing search index...

    Function createDisplay

    • Creates a Display bound to the original (unpatched) console methods, prefixing every message with the given prefix.

      Capturing the original console methods up front avoids triggering behaviors added by another SDK (or the host application) that may have patched console.* afterwards.

      Parameters

      • prefix: string

        String prepended to every logged message (e.g. to attribute output to an SDK).

      Returns Display

      A Display whose methods forward to the original console methods.