uio-bmi / immuneML

immuneML is a platform for machine learning analysis of adaptive immune receptor repertoire data.
https://immuneml.uio.no
GNU Affero General Public License v3.0
60 stars 29 forks source link

Cleaned up print/logging #137

Closed LonnekeScheffer closed 1 year ago

LonnekeScheffer commented 1 year ago

I found it annoying that the regular immuneML print statements are not shown in the log file. I think much of the logging becomes more understandable by knowing where during the immuneML run it was encountered.

Added print_log utility function:

Fix in log function: logging of entering/exiting methods showed datetime double (because it was added inside log() as well as logging.basicConfig.format)

Some examples of log files using the old code vs this new code: old_logfile_example.txt new_logfile_example.txt

LonnekeScheffer commented 1 year ago

small fixes added later: