Skip to content

cube.log

Either changes whether the cube outputs a change log. Or returns whether the cube presently is logging changes.

js
cube.log(name, bShouldLog);

or

js
let isLogging = cube.log(name);

Parameters

  • Name - The identifier of the cube.
  • bShouldLog - (Optional) true or false. If this argument is omited the function will return the cubes current logging flag.

Example

js
let value = cube.log("General Ledger", false); 
if (value) { 
    console.log("Cube loggig has been turned off for the General Ledger."); 
}