Logging #
The logger framework lets you set log levels and send your logs to multiple outputs. There is a FileHandler class that will log to a file, however it does not flush automatically. I’m not sure when it ever flushes, actually, which is a problem for long running processes that only log occasionally. so I created my own JoshFileHandler that flushes after every log.
visual logging
terminalio – Displays text in a TileGrid — Adafruit CircuitPython 8.2.0-rc.0 documentation