radis.misc.log moduleΒΆ

@author: Erwan

Logging and warning functions

printlog(msg, logfile='log.txt', stdout=True)[source]ΒΆ

Write a message to the logfile, adding date and time.

Also print it to screen if stdout is True

printwarn(msg, verbose=True, warnings=True)[source]ΒΆ

Send msg in the console if verbose is True, and as warning if warnings is True.

Warnings is added at the end of the process but you may miss it if interrupted.

warnlog(msg, logfile='log.txt', stdout=True)[source]ΒΆ

Write a WARNING message to the logfile, adding date and time.

Also print it to screen if stdout is True