Function setGlobalLoggerOptions

    • Sets global logger options that apply to all loggers created via getGlobalLogger()

      This allows you to configure logging behavior across the entire SDK from a single point. Changes affect all future logger instances created with getGlobalLogger().

      Parameters

      • options: Partial<LoggerOptions>

        Partial logger options to merge with current global settings

      Returns void

      // Set global log level to debug
      setGlobalLoggerOptions({ level: 'debug' })

      // Disable timestamps and colors
      setGlobalLoggerOptions({
      timestamp: false,
      colors: false
      })

      // Use custom log handler
      setGlobalLoggerOptions({
      handler: myCustomHandler
      })