CSUFTitanRover / TitanRover2018

Titan Rover 2018 Edition: Calypso
http://titanrover.com/
Apache License 2.0
12 stars 10 forks source link

Activity Logger #55

Open Weffe opened 6 years ago

Weffe commented 6 years ago

Hello everyone,

I think it could possibly be useful to utilize a logger for any activity the onboard computer is doing. Python has a built-in logger library ready for use (more info) and as far as javascript goes, there is Winston which was used last year. We could limit the log file to 10mb or something even smaller if storage is a concern. The main use case is that if we come across a run-time error we could possibly log it to a file before the program exits due to the exception and have an idea why it crashed. What do you guys think?

dfeinzimer commented 6 years ago

Sounds like a fantastic idea to me. Any downsides other than storage concerns?

Weffe commented 6 years ago

Not that I can think of. Maybe read/write speeds could be an issue if we are writing really verbose messages really quickly? But I don't think that should hurt us.

Weffe commented 6 years ago

@audstanley @skrapmi @rerdtsieck @vielma24

Thoughts on doing something like this? It can be useful for debugging purposes especially if we are out there doing competition tasks and something craps out on us.