module: history

document program history events in a log file

class Assign_GUP.history.Logger(log_file=None, level=20, statusbar=None, history_widget=None, minor_details=False)[source]

Bases: object

use Python logging package to record program history

Parameters:
  • log_file (str) – name of file to store history
  • level (enum) – logging interest level (default=logging.INFO, no logs = -1)
  • statusbar (obj) – QStatusBar instance in main window
  • history_widget (str) – QPlainTextEdit instance in main window
  • minor_details (bool) – Include minor details in the logs?
add(message, major_status=True)[source]

log a message or report from the application

Parameters:
  • message (str) – words to be logged
  • major_status (bool) – major (True) or minor (False) status of this message
first_logs()[source]
Assign_GUP.history.addLog(message='', major=True)[source]

put this message in the logs, note whether if major (True)

Assign_GUP.history.logMinorDetails(choice)[source]

choose to record (True) or not record (False) minor details in the logs