RebbleOS icon indicating copy to clipboard operation
RebbleOS copied to clipboard

Better log output

Open ginge opened this issue 7 years ago • 3 comments

Log formatting crude. Needs cleanup

ginge avatar May 14 '17 09:05 ginge

PebbleOS has a pretty good architecture for this in general. I think they have strings in debug builds that get collapsed to filename/line number in prod builds. As a bonus, that means that they have a compressed log format that can get splatted out over Bluetooth quickly -- or a log format that can get written to flash without taking up too much space.

I think a good first cut at this would be to see if we can get rid of (!) the printf() function from the codebase entirely. Then, anyone doing output at least is forced to get marshaled through a common log entry point...

jwise avatar May 15 '17 01:05 jwise

I'm working my way to removing printf's and replacing them with what I think are appropriate _LOG's

eliedrian avatar Oct 23 '19 14:10 eliedrian

That'd be great! That would also pipeclean for #80.

jwise avatar Nov 03 '19 18:11 jwise