Skip to content

0.0.7: Provide start, end, & runtime duration logging for thread

Compare
Choose a tag to compare
@shailshouryya shailshouryya released this 19 Jun 19:22
· 87 commits to main since this release
cbd2bcc
  • compare changes to previous version
  • ==> If you want to mute logging this message to the terminal for all ThreadWithResult instances, set the log_thread_status class attribute to False:
ThreadWithResult.log_thread_status = False
  • ==> If you only want to mute logging this message to the terminal for a specific instance of ThreadWithResult, set the log_thread_status attribute for the specific instance to False:
thread_with_result_instance.log_thread_status = False
  • Keep in mind python prioritizes the log_thread_status instance attribute over the log_thread_status class attribute!
  • ==> If you want to log this message to an output file (or multiple output files) for all ThreadWithResult instances, set the log_files class attribute to an iterable object contatining objects that support the .write() method:
ThreadWithResult.log_files = [file_object_1, file_object_2]
  • ==> If you only want to log this message to an output file (or multiple output files) for a specific instance of ThreadWithResult, set the log_files attribute for the specific instance to an iterable object contatining objects that support the .write() method:
thread_with_result_instance.log_files = [file_object_1, file_object_2]
  • Keep in mind python prioritizes the log_files instance attribute over the log_files class attribute!
  • ==> To see a more detailed explanation, see the updated documentation with
import save_thread_result
help(save_thread_result)
  • release 0.0.7 also removes the irrelevant "Operating System :: RISC OS" PyPI classifier