Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
0.0.7: Provide start, end, & runtime duration logging for thread
- ==> 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
- Loading branch information