mLinux persistent system logging
- This topic has 1 reply, 2 voices, and was last updated 3 years ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forums › Conduit: mLinux Model › mLinux persistent system logging
Tagged: log mlinux persistent volatile
Hi,
We use several custom application on Conduit which log to the systemlog and rsyslog separate its to /var/log directory. In var directory the log directory is a symlink to /var/volatile/log, we would like to change that to /var/persistent/log to make our logs persistent after reboot. I found a generated script /etc/volatile.cache which provides the log directory setup on every startup. Is it safe if I change that script to symlink log directory to /var/persistent/log or is there an other way to make our logs persistent?
Best regards,
Dániel Nánási
Hello Dániel,
I think your proposal should work in theory. However, I would warn that the reason the logs are not persistent on the device is that when under heavy logging load, the NAND flash can start having issues that can cause writes to fail and various other negative affects.
If the system is not logging heavily it may work fine.
Thank You,
Jeff