biolink / ontobio

python library for working with ontologies and ontology associations
https://ontobio.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
122 stars 30 forks source link

Logging configuration in __init__ file takes precedence over user configuration #471

Open valearna opened 4 years ago

valearna commented 4 years ago

From v1.15.4, after importing ontobio, calling logging.basicConfig doesn't configure the logging system, unless force is set to True. This is due to the changes introduced in c942c70 and 736694e, which force configuration to handlers of the root logger. To avoid confusion, it would be better to avoid setting the handlers from the library and leave the logging configuration to the end user.