Log messages, errors and exceptions handling
The goal is to achieve centralized logging for BLISS log messages, and to solve the last_error(s)
issue at the same time
TODO:
-
add command line options to Beacon to be able to specify a log file + max file size - use a rotating log file handler
-
⚠ one file for each different BLISS session- think about the log filename
-
make a logging socket server within Beacon - this one will save log messages to the specified file
-
BLISS shell to install an exception handler - via
sys.excepthook
- via
-
BLISS shell should forward log messages to Beacon -
last_error()
would take the last error message from Beacon -
a special function key in BLISS shell should open a screen to display the entire log file from Beacon - preferably with ptpython instead of tmux (think about people not using tmux)