uwmisl / poretitioner

https://misl.cs.washington.edu
Other
3 stars 1 forks source link

[Not ready for merging] Add logging module. Get verbosity and debug mode from command line. #56

Closed thequicksort closed 4 years ago

thequicksort commented 4 years ago

Writing a longer description, but here's a rough idea of how I'm thinking logging could work.

Any submodule/file that needs logging can just do

""""
===============
arbitrary_module.py
===============
""""

from poretitioner.logger import getLogger 

def fancy_signal_processing():
     # ....
     log = getLogger()
     log.debug("Debug")
     log.error("This is an error")