Checks whether logging of a cube is turned on
CubeName - The name of the cube for which you want to check
1 - If logging is turned on
0 - If logging is turned off
If(CubeGetLogChanges('SalesPlan') = 0);
TextOutput('D:cubelog.txt','Logging is turned off');
This code will check if logging is turned on for a cube, and if it doesn't, writes a log.