-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.js
More file actions
18 lines (16 loc) · 825 Bytes
/
main.js
File metadata and controls
18 lines (16 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CF.userMain = function() {
// Make sure Rollbar was added to the guiDesigner project via script manager
if (!CFRollbar) {
CF.log("CFRollbar.js missing from project!");
CF.setJoin("zmessages", "CFRollbar.js missing from project!");
} else {
// Setup Rollbar by pasting the Client Project Access Token from your Rollbar account below.
// Without this access token, Rollbar won't get your logs!
CFRollbar.init({accessToken: "YOUR CLIENT ACCESS TOKEN HERE", watchSystems: true, watchSuspend: true, watchResume: true});
}
// Now anywhere in your code, or even from commands in your project, you can call Rollbar to send logs.
// Rollbar.info("log some info message");
// Rollbar.error("log some error message");
// For more examples, see Rollbar docs:
// https://rollbar.com/docs/notifier/rollbar.js/#usage
};