def print_message(self, message="<STR_LIT>"):
if self.log == None: print(message)<EOL>else:                self.log.append_text(message)<EOL>
If self.log is defined to be an instance of TextLog, it print the
message there. Otherwise use the usual "print" to command line.