Re: [PATCH] Adding KERN_INFO to some printks

vda (vda@port.imtp.ilyichevsk.odessa.ua)
Fri, 9 Nov 2001 21:17:00 +0000


On Friday 09 November 2001 17:02,
"Mr. James W. Laferriere" <babydr@baby-dragons.com> wrote:

> Hello Vda , Would you share your /etc/syslog.conf file ?
> I'd really like to see Good example of one . Most of the docs
> describe what all the options do , But don't show how they relate
> in the config file . Tia , JimL
>
> > I configured my syslog to sort all kernel msgs to
> > /var/log/syslog.N.debug|info|notice|warn|... (you got the idea)
> > and made it spew everything on tty12, and warnings only to tty11.
> >
> > I got tired of seeing purely informative messages on tty11 every
> > boot. They shouldn't be there.

# /etc/syslog.conf
#
# Message proirities:
# debug info notice warning err crit alert emerg

*.debug /var/log/syslog.7.debug
*.info /var/log/syslog.6.info
*.notice /var/log/syslog.5.notice
*.warn /var/log/syslog.4.warn
*.err /var/log/syslog.3.err
*.crit /var/log/syslog.2.crit
*.alert /var/log/syslog.1.alert
*.emerg /var/log/syslog.0.emerg

# >= crit: these will go to console too
# vda: had to comment it out: was dying on SAK 'coz held /dev/console open
# I hope syslogd maintainer will someday read this...
##*.crit /dev/console

# Log everything on 12th console, log 'serious' things on 11th
*.* /dev/tty12
*.warn /dev/tty11

#
# This might work instead to log on a remote host:
# *.* @hostname
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/