Extends the base-class with a run_thread method that will log tracebacks on exceptions.
This is meant to log errors that kill threads.
Methods
__init__() | |||
log_error(error[, message]) | Logs the error in bold red | ||
run() | This is called by the run_thread() method | ||
run_thread(*args, **kwargs) |
|
Attributes
logger |
|
||
thread | This passes no arguments to run_thread – override if needed |
Logs the error in bold red
Param: |
|
---|
This is called by the run_thread() method
Param: | Whatever self.run accepts |
---|---|
Precondition: | self.run method exists and is thread-safe |
Returns: | A logging object. |
---|
This passes no arguments to run_thread – override if needed
Returns: | threading.Thread with self.run_thread as target and daemon True |
---|