Optional apiURLThe app key to log into
Optional baseURLBase URL to Bugfender web dashboard
Optional buildApp build identifier
Optional deviceDevice name, this will be shown on the dashboard devices list. Defaults to browser + OS.
Optional enableLogs all logs written via Logcat. Defaults to false. Android only.
Optional ignoreConfigure exception filtering to ignore certain exceptions from being reported as crashes. Can be:
(info) => info.message.includes('Script error')['Script error', /^ResizeObserver/i]{ filter: (info) => ..., patterns: [...] }// Ignore specific error messages
ignoreException: ['Script error', 'NetworkError']
// Ignore using regex patterns
ignoreException: [/^ResizeObserver/i, /^Non-Error/i]
// Ignore using a custom function
ignoreException: (info) => {
return info.message.includes('Third-party script') ||
info.filename?.includes('analytics.js');
}
// Combine patterns and function
ignoreException: {
patterns: ['Script error'],
filter: (info) => info.handler === 'UnhandledRejection' && info.message.includes('canceled')
}
Optional logRegister a handler for most common browser events to report them to Bugfender. Defaults to true.
Optional logUIEventsRegister a handler for most common UI events to report them to Bugfender. Defaults to true.
Optional maximumSet the maximum size to store local log files in bytes. Range accepted is from 1MB to 50MB. Defaults to 5MB. iOS & Android only.
Optional overrideOverride default window.console so it also logs to Bugfender. Defaults to true.
Optional printPrint also with window.console when Bugfender logging methods are called. Defaults to true.
Optional registerRegister error handler for uncaught errors that reports a crash to Bugfender. Defaults to true.
Optional versionApp version identifier
Base URL to Bugfender API