NERC-CEH / dri_gridded_data

GNU General Public License v3.0
0 stars 0 forks source link

Log things properly #6

Closed mattjbr123 closed 3 weeks ago

mattjbr123 commented 1 month ago
          A fun [SO discussion here about "why use logging instead of print](https://stackoverflow.com/questions/6918493/in-python-why-use-logging-instead-of-print)"

I know it's just a script and you can probably find print statements in my code without looking very hard :) - use of logging instead is a good habit to build though!

My use of it tends to be basic, with logging.basicConfig(level=logging.INFO) just under the imports, then logging.info wherever i'd print

_Originally posted by @metazool in https://github.com/NERC-CEH/object_store_tutorial/pull/5#discussion_r1776981875_