robotpy / robotpy-wpilib

Moved to https://github.com/robotpy/mostrobotpy
https://robotpy.github.io
Other
169 stars 59 forks source link

By default, configure python logging at startup #16

Closed virtuald closed 9 years ago

virtuald commented 9 years ago

This might fall into the utility library category, but I think it would be nice for us to provide a good default implementation of python logging configuration so when bugs occur, users can easily retrieve error information.

This is related to deployment, I think. https://github.com/frc1418/robotpy-2015/issues/2

virtuald commented 9 years ago

Also, we should package/configure this by default: http://word.bitly.com/post/69080588278/logging-locals

It's really useful if an exception happens in some thread and you can see the locals that may have caused the problem.

virtuald commented 9 years ago

If we package the locals logging stuff, then robotBase should be configured to do a logging.exception() also instead of just raising the exception, to give the user better information.