Page 1 of 1

DietPi Logging

Posted: Thu Jun 22, 2017 4:10 pm
by dietpiOK
2 Questions on logging in DietPi:

1) When switching Logging to "Full" I will have the two logfiles /var/log/Messages and /var/log/syslog.
Is there any chance to get These two loggins also in DietPi-Ramlog#1 or DietPi-Ramlog#2?

2) can I configure that results from cronjobs (e.g. has a cron Job been triggered for execution, has there been any Trouble with executing the cron Job, ...) are being logged as well?

TIA,
Olaf

Re: DietPi Logging

Posted: Thu Jun 22, 2017 9:09 pm
by johnvick
As to question 2 you can include a few lines of script to do the logging - here's a simple example I use from a script in cron.daily.

Code: Select all

#!/bin/sh
LOG=/var/log/my.log

Put your commands here

echo "*** $(date -R) ***" >> $LOG