dhhagan / py-opc

Python wrapper for the Alphasense OPC-N2 built around py-spidev
MIT License
30 stars 26 forks source link

Suggestion for improvement - Set the logging internally to the _OPC class #84

Open FlorentinBulotAQ opened 5 years ago

FlorentinBulotAQ commented 5 years ago

Hello,

Just a suggestion for improvement as the logger creates conflict when integrating it with other loggers. I am happy to do it if people deem it necessary. Otherwise, a workaround is to use:

for handler in logging.root.handlers[:]: logging.root.removeHandler(handler)

in the script you use to run the py-opc library.

With best wishes.