IHubConfig
Hub.js configuration settings
You can override the default settings by
initializing the global arcgisHubConfig
variable
before using any Hub.js functions, for example:
import { Logger } from '@esri/hub-common';
// configure Hub.js
const logLevel = environment === 'production' ? 'error' : 'debug';
globalThis.arcgisHubConfig = { logLevel };
// then use Hub.js
Logger.info('This message will not log on production');
Properties
Property | Type | Notes |
---|---|---|
Optional | LogLevel |
The global log level for Hub.js |
Interface defined in common/src/utils/IHubConfig.ts:18