CAST-genomics / haptools

Ancestry and haplotype aware simulation of genotypes and phenotypes for complex trait analysis
https://haptools.readthedocs.io
MIT License
19 stars 4 forks source link

fix: logging so that it doesn't affect the root logger #154

Closed aryarm closed 1 year ago

aryarm commented 1 year ago

After reading this article, I realized that I wasn't creating my logger objects properly. The way that I was doing it would affect the root logger object and, subsequently, any loggers in other python libraries that inherit from the root logger.

This PR creates a new custom logging module within haptools. We reduce boilerplate by just using the custom logging module to get our logger objects from now on. I also documented all of this in our contributing docs.