phi-grib / flame

Modeling framework for eTRANSAFE project
GNU General Public License v3.0
12 stars 10 forks source link

use Logging instead of print #53

Closed BielStela closed 5 years ago

BielStela commented 6 years ago

We should use Logging lib to dump event messages, warnings and errors. It will improve debugging and inspection of results. The logger have different levels (DEBUG, INFO, WARNING, ERROR) and info about the module that produces the message. For example:

2018-07-28 12:41:12,075 - flame.build - INFO - Creating list...
2018-07-28 12:41:12,075 - flame.build - DEBUG - length of list: 10
BielStela commented 6 years ago

logging tutoral: https://docs.python.org/3.6/howto/logging.html#logging-basic-tutorial

BielStela commented 6 years ago

Log Padel service results !