Currently, we use print to debug our programs. We shouldn't do that, as it can affect how our program runs in competition. It may also make it harder for Autonomous to see useful information.
Implementations
However, Python doesn't really have an incredible de-facto logging library. logging is pretty close, but it lacks simple features like colored output.
Here's a list of common libs with some info about them.
Currently, we use
print
to debug our programs. We shouldn't do that, as it can affect how our program runs in competition. It may also make it harder for Autonomous to see useful information.Implementations
However, Python doesn't really have an incredible de-facto logging library.
logging
is pretty close, but it lacks simple features like colored output.Here's a list of common libs with some info about them.
Logging
Pros:
Cons:
loguru
:logging
, with better defaultsPros:
tracing
crate is a lot likeloguru
.logging
lib.Cons:
picologging
It's a drop-in replacement for
logging
. The only difference is that it's significantly faster! See thelogging
section for more info.