Wander - thanks for the patch and quick response. I'll test that out.

Karl. see below.


On Mon, Aug 29, 2011 at 1:47 PM, Karl P <ka...@tweak.net.au> wrote:
> If you are using logging in your app, and you don't want to get logging from a
> library that you are using, I expect the user to turn off logging for that
> library.  At least, that's what _I_ expect.  (it's what log4j/slf4j does, and
> it's also how all of my apps and libraries work.
>
> I personally consider what Chris reports to be "expected behaviour"

We may be getting into personal preference here. I would NOT expect to
see a library's debug output when running my script (or application).
If that behavior/behaviour  were to be common, one would end up seeing
debug output from indirect library dependencies. E.g. script uses
"wonder_lib", which in turn uses "super_lib" and "awesome_lib", etc.
One has the potential to see output from 3 libraries (or more if they
also includes more libs), all 3 would need to be turned off in my
script! :-(

Do you have a reference to log4j/slf4j examples that you mention?
Again, I'd expect to explictly enable the logging in the library I'm
using if I want to see it.

If we can find precedent for the reverse behavior I can modify my
expectations, it just doesn't seem right to me ;-)    Beauty is in the
eye of the beholder and all that :-)

Chris

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to