I know Legato has some built in logging systems in terms of dumping logs to
/mnt/flash/legato_logs on critical failure, however I’m looking to capture all logs at this moment.
I wrote a simple app that invokes
logread and captures the stream, but I’m looking to build/configure something a little more robust (with log rotation). I also had a look at
/etc/syslog-startup.conf but changing these settings didn’t seem to make a difference.
How have others been solving this problem? Is recording the output of
logread and manually performing rotations my best bet, or is there an existing solution that works well?