I made an output agnostic logging framework for embedded devices that would work on anything as it's written only with standard C++ libs. In theory I could use it for linux or pis, lol. I made it because I kept having to write new handlers for serial, mqtt, uart, then having to like wire them all together without creating dependency loops or other issues - especially because I often work on meshes or online embedded devices that require multiple outputs. Now you just write your handler, tell it what tags to watch, and it'll log according to tag and log level. So you could write a serial debugging log handler when you're first making it. Then when you're done, disable it, and it'll stop outputting - but then later assign the serial debugging log tag to your MQTT handler and get all your debugging serial lines output to MQTT - then just disable it again when you're done. There's still some polish I need to put into it, it has some jank, some bugs, but it's working and neat. it's kind of neat.
Output Agnostic Logging framework designed to handle situations where you need to output logging to multiple locations - Allie-Leth/LogAnywh














