mpylab.tools.logging_utils moduleΒΆ

Logging and traceback helper functions.

mpylab.tools.logging_utils.LogError(Messenger)

Send current exception traceback through project messenger.

class mpylab.tools.logging_utils.OutputError

Bases: object

Small file-like collector used for traceback output capture.

clear()

Reset stored output and read cursor.

readline()

Return next collected line and advance read cursor.

readlines(lines=None)

Return up to lines collected output items.

seek(count=0)

Move read cursor to count.

write(obj)

Append one output item.

mpylab.tools.logging_utils.tstamp()

Return local timestamp string with timezone.