“cmd.log_open” opens a log file for writing.
def log_open(filename='log.pml', mode='w'):
log_open | api