rollbar-grouping
Group multiple messages of one event
Feel free to open new issues here!
Installation:
npm install --save rollbar-grouping
Initialization with all available options:
const rollbar = rollbar: accessToken: processenvROLLBAR_ACCESS_TOKEN captureUncaught: true captureUnhandledRejections: true environment: processenvNODE_ENV verbose: true itemsPerMinute: 500 maxItems: 500000 mock: false // true for simulating rollbar messages. Default to false eventTimeout: 15000 // Time (in milliseconds) to wait for a .finishEvent() calling. Default to 15000 moduleErrorLogging: true // true for making console.error on unexpected error. Default to true secondLogging: consolelog // Function for logging if rollbar is not present. Default to console.log;
Usage Example:
1
const eventId = rollbar;rollbar;rollbar;rollbar;
2
const eventId = rollbar;rollbar;rollbar;rollbar;rollbar;
Rollbar Result (warn level (maximum detected)):
Some info message!
Some warn message..
Last message