Skip to main content

console

optional

By default, LogDuck logs the following methods of the console API:

console.log console.info console.debug console.warn console.error

LogDuck console capture can be modified with the options below.

isEnabled optional - boolean

Disable this boolean to prevent logging of console data to LogDuck.

Script
feedback.init(YOUR_APP_ID, {
console: {
isEnabled: false,
},
});

isEnabled.[log|info|debug|warn|error] optional - boolean

You can also disable specific console methods by setting the method name to be false. By default, all methods will be logged unless explicitly set to false.

Script
feedback.init(YOUR_APP_ID, {
console: {
isEnabled: {
log: false,
debug: false,
},
},
});

shouldAggregateConsoleErrors optional - boolean

Use this option to control whether aggregated data about messages logged with console.error() or feedback.error() is surfaced in LogDuck error reporting.

Script
     feedback.init(YOUR_APP_ID, {
console: {
shouldAggregateConsoleErrors: true,
},
);