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