Skip to main content

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
code:
$ sudo nano /etc/rsyslog.d/50-default.conf
uncommenting '#' before line says cron in enable logging cron.
code:
[..snip..]  #cron.*                         /var/log/cron.log  [..snip..]
remove '#' symbol line. can choose logging level specifying log level in line.
example
code:
cron.*                                                      /var/log/cron.log
log messages cron.log file, whereas
code:
cron.crit         /var/log/cron.log
log messages tagged crit, emerg , alert well.. can restart logging daemon giving following command in terminal
code:
$ sudo /etc/init.d/rsyslog reload
or
code:
$ sudo kill 1 `cat /var/run/rsyslogd.pid`
hope helps


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

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???