Right now we dump all kinds of debug logging to stderr, which is very useful during development. Eventually, we would want some more functional logging. For client-cli, stderr is fine. For FTXUI, logging to stderr destroys the interface/makes it blink, etc. For LVGL users, stderr is great -if- they have a console, but our eventual target environments (say, Toon1) won't have that.
So, we need to handle logging in a saner way. I'm thinking a vector or deque of log messages, that a frontend class can dip into. In FTXUI, we'd usually have room for a pane (not too narrow) to show a few messages in, perhaps even scrollable. For LVGL, maybe a separate screen for looking at logging, and some notification icon with a number on it for new messages above a certain severity?
Right now we dump all kinds of debug logging to stderr, which is very useful during development. Eventually, we would want some more functional logging. For
client-cli
, stderr is fine. For FTXUI, logging to stderr destroys the interface/makes it blink, etc. For LVGL users, stderr is great -if- they have a console, but our eventual target environments (say, Toon1) won't have that.So, we need to handle logging in a saner way. I'm thinking a vector or deque of log messages, that a frontend class can dip into. In FTXUI, we'd usually have room for a pane (not too narrow) to show a few messages in, perhaps even scrollable. For LVGL, maybe a separate screen for looking at logging, and some notification icon with a number on it for new messages above a certain severity?