bitcraze / crazyflie-clients-python

Host applications and library for Crazyflie written in Python.
Other
310 stars 475 forks source link

Use Python logging instead of prints #5

Closed bitcraze-issue-importer closed 10 years ago

bitcraze-issue-importer commented 10 years ago

Switch from using printouts to using the Python logging utility instead since it's a lot easier to filter messages and to redirect the output to a file (that can be attached to issues etc.)

The levels for the logging should correspond to:


bitcraze-issue-importer commented 10 years ago

The argument --debug or -d together with minimal, info, debug or debugfile can now be used to control the logging. The default value is info. When using minimum only warnings and errors are logged.

When using debugfile messages are also stored to a file with the some extra debug info such as thread name and time.


Original Comment By: Marcus Eliasson

bitcraze-issue-importer commented 10 years ago

Using logging instead of printouts. Close #5

→ <>


Original Comment By: Marcus Eliasson