DassHydro / smash

An open source, Python library interfacing the Fortran Spatially distributed Modelling and ASsimilation for Hydrology platform.
https://smash.recover.inrae.fr/
GNU General Public License v3.0
10 stars 5 forks source link

ENH: Add a logger #185

Open inoelloc opened 2 months ago

inoelloc commented 2 months ago

Currently, smash prints log to stdout and progress bar to stderr (using tqdm). It is not practical, especially as handling is almost non-existent. A good idea would be to use a logger and let the user choose their log level. One point of attention will be to manage Fortran logs, but we'll probably use call-back functions calling Python from Fortran F2PY call-back