PipeLog

class pipe.PipeLog(logfile=None, verbosity=1)[source]

Bases: object

Keeps track of tima and messages to the logfile

If logfile exists, entries will be appended. verbosity is an integer that determines what messages should be printed on screen (all messages go to the log). A higher verbosity means more messages will be printed. Default is verbosity=1.

Methods Summary

init_time()

The initial time is referred to when computing time passed, e.g.

mess(text[, level])

Saves message to logfile and prints on screen if integer level is equal to verbosity or lower.

mess_list(text_list[, level])

Walks thorugh list of strings, saves them to logfile and prints on screen if integer level is equal to verbosity or lower.

Methods Documentation

init_time()[source]

The initial time is referred to when computing time passed, e.g. to find execution time so far.

mess(text, level=1)[source]

Saves message to logfile and prints on screen if integer level is equal to verbosity or lower.

mess_list(text_list, level=1)[source]

Walks thorugh list of strings, saves them to logfile and prints on screen if integer level is equal to verbosity or lower.