Function getGlobalLogger
Parameters
- module: string
The module name for the logger
Returns Logger
A Logger instance configured with global options
Example
// In your module
const logger = getGlobalLogger('MyModule')
logger.info('Module initialized')
logger.debug('Processing data', { count: 10 })See
- setGlobalLoggerOptions to configure global options
- createLogger for creating loggers with custom options
- module: string
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()orinitBrowserLogger().