The Gleap SDK collects console logs by default: your app's console.log, console.info, console.debug, console.warn and console.error calls, uncaught errors and unhandled promise rejections, with the last 500 entries attached to every ticket. Further more you can make use of our custom logs, which offer more control over the logs.
Disable default console logs
It is possible to disable the default collection of console logs by calling the following method prior to the initialization of Gleap.
Gleap.disableConsoleLogOverwrite();Custom logs
Custom logs allow you to create logs in the Gleap activity log. There are three severity types available for logs: ERROR, WARNING and INFO.
Gleap.log({
message: "This is a test custom log."
});By default logs will be created with the severity INFO. Use the following method to explicitly set the severity.
Gleap.log({
message: "This is a test custom log WARNING.",
logLevel: "WARNING"
});
