linux-automation / meta-lxatac

Build your own LXA TAC images and bundles
MIT License
5 stars 15 forks source link

meta-lxatac-bsp/rauc: Enable event log #142

Closed SmithChart closed 4 weeks ago

SmithChart commented 1 month ago

This enables rauc event logging for all types of events known to rauc. With this log we can examine boots, mark-good decisions after boot and a history of installed bundles.

The all-events.log file is created inside the data directory in /srv/rauc/. There is no rotation configured for this file - so history is stored forever. This will add around 350 Bytes of log per boot and 900 Bytes of log per install. Thus, for a reasonable use-case the log file should stay well below a few MB.

SmithChart commented 4 weeks ago

There is a slight discrepancy between the logger name ('install', which is a distinct event type) and the file name used ('all' events). Apart from this, change looks good to me. 👍

Thanks for catching that. I've changed the name of the logger to log.all-log.