Enabling browser logging for a BMC Helix Innovation Studio application
To enable browser logging
- In the application, to open the browser console, press F12.
- On the browser console, navigate to the Console tab.
- Set the log level in the Console window, by using the rx.logger.setCategories() method.
The method accepts an array. For example, to set the logs for API and SQL, use the following method:
rx.logger.setCategories(['api', 'sql'])
The logs are populated in the browser console. - View the type of logs currently being logged by using rx.logger.getCategories() method.
To reset the log categories, use the setCategories() method with an empty array.
For example: rx.logger.setCategories([])
Logging levels
You can specify the following logging levels in the method to filter the log messages:
Logging level | Description |
---|---|
Server logs | |
sql | Logs SQL logs executed on the server. |
api | Logs server API messages to the console. |
rule | Logs rules execution information to the console. |
process | Logs processes execution information to the console. |
bundle | Logs all the messages for the custom code. |
To add multiple logging levels to the setCategories() method, separate the logging levels using comma.
For example, to enable server logging level and info level, specify the logging levels in the URL as follows:
rx.logger.setCategories(['api', 'sql', 'rule', 'process', 'bundle', 'cli'])