mcsas.log.log module

Interface and convenience methods for general logging.

addHandler(handler)[source]

Set up a new handler and add it for logging.

formatter()[source]

Date and time format for logging, ISO 8601:2004

removeHandler(handler)[source]

Warning

function ‘log.log.removeHandler’ undocumented

replaceHandler(handler)[source]

Warning

function ‘log.log.replaceHandler’ undocumented

replaceStdOutErr(sout=None, serr=None)[source]

Replaces stdout/err with calls to logging.info/error.

timestamp()[source]

Current local time in seconds.

timestampFormat()[source]

Format for current local time, suitable for file names. >>> timestampFormat() ‘%Y-%m-%d_%H-%M-%S’

timestampFormatted(ts=None)[source]

Current local time. >>> timestamp() == time.strftime(“%Y-%m-%d_%H-%M-%S”) True