mims-harvard / TDC

Therapeutics Commons (TDC-2): Multimodal Foundation for Therapeutic Science
https://tdcommons.ai
MIT License
996 stars 174 forks source link

logging #193

Open davidegraff opened 1 year ago

davidegraff commented 1 year ago

Describe the problem TDC currently prints a bunch of status messages to standard out. This presents a few problems for the client:

Describe the solution you'd like Move most logging statements from print_sys calls to logger.* calls

I.e., at the top of most modules:

import logging

logger = logging.getLogger(__name__)

# print_sys(mesg)
logger.*(mesg)

where * is the appropriate method depending on the severity of the message (debug, info, warn, error, critical)

Additional context this page contains some good resources for addressing this

kexinhuang12345 commented 1 year ago

Thank you for the great suggestion, David! We will work on it!