All the JavaScript components use the same logging library. The logging library has a default log level of “INFO”. The default logging level can be changed:

import {log} from "@sascom/commonjs";

log.setLogger("ERROR");

Debugging

For live debugging, it can be useful to change the log level without changing the application code, this can be done in the following way (using the JavaScript console, provided by your browser):

bimworks.setLogLevel("DEBUG");

Optionally you can also indicate that the new log level should be persistent (on your browser) after reloads, you can do this:

bimworks.setLogLevel("DEBUG", true);

In this case a LocalStorage item is created with the name “bimworks_loglevel”.