OHDSI / ETL-CMS

Workproducts to ETL CMS datasets into OMOP Common Data Model
Apache License 2.0
94 stars 52 forks source link

Use idiomatic logging for Python #8

Open aguynamedryan opened 9 years ago

aguynamedryan commented 9 years ago

The original author used print statements to log the progress of the ETL and is hoping that someone else can replace that approach with whatever Python uses as a standard for generating logs.

chendaniely commented 9 years ago

This is fairly trivial if we are doing everything within the same module. We can replace the print statements a logging class [1] , the basic tutorial [2] is pretty good to get things started

[1] https://docs.python.org/2/library/logging.html [2] https://docs.python.org/2/howto/logging.html#logging-basic-tutorial