writes log file from cubes

debuglog.txt