Function getGlobalLogger

    • Creates a logger instance using global configuration

      This is the recommended way to create loggers in the SDK, as it ensures consistent configuration across all modules. The global options can be set via setGlobalLoggerOptions() or initBrowserLogger().

      Parameters

      • module: string

        The module name for the logger

      Returns Logger

      A Logger instance configured with global options

      // In your module
      const logger = getGlobalLogger('MyModule')

      logger.info('Module initialized')
      logger.debug('Processing data', { count: 10 })