Hello, First of all, thank you for making PyUSB, it works quite well for our cross-platform application!
We recently started implementing logging in our application that depends on PyUSB, and ran into the error propagation problem discussed in this message: http://comments.gmane.org/gmane.comp.python.pyusb.user/872 Simply using a named logger instead of the root logger does work, and will be fine for our task. I am just curious to know if there is a reason that PyUSB does not set the Logger.propagate field to False for its loggers, or provide that as an option? It seems like that would be a more expected default, since PyUSB logs errors for expected cases (certain driver backends not being found). Alternatively, it would make more sense if individual modules failing to load logged to info or debug levels, and an error level was only logged if no backends are found. The best option, I think, would be providing an interface to turn off all PyUSB logging propagation so it does not flood the root logger. Thanks, -Trevor -- Trevor Bentley Sherpa Solutions, LLC Office: (404)467-8866 Web: http://www.sherpasolutions.net/ ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users