Thread: How to change the log level for cron
hello,
i'm wondering how change log level level 2 cron without manually have restart every boot.
didn't thing hard find, searching has cause me come empty.
system 9.10
thanks,
narnie
hi,
can achieved editing /etc/rsyslog.d/50-default.conf
uncommenting '#' before line says cron in enable logging cron.code:$ sudo nano /etc/rsyslog.d/50-default.conf
remove '#' symbol line. can choose logging level specifying log level in line.code:[..snip..] #cron.* /var/log/cron.log [..snip..]
example
log messages cron.log file, whereascode:cron.* /var/log/cron.log
log messages tagged crit, emerg , alert well.. can restart logging daemon giving following command in terminalcode:cron.crit /var/log/cron.log
orcode:$ sudo /etc/init.d/rsyslog reload
hope helpscode:$ sudo kill 1 `cat /var/run/rsyslogd.pid`
Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] How to change the log level for cron
Ubuntu
Comments
Post a Comment