grokking logger

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Anybody know how to subsscribe to logger messages?

Since lk 2.6, seemingly:

tail -f /var/log/dmesg
loses much.

tail -f /var/log/messages
stutters much.

What little I do know is:

> From: http://groups.google.com/groups?selm=linux.scsi.1069112216.5270.54.camel%40patrh9.SOMEWHERE
> Newsgroups: mlist.linux.scsi
> Subject: Re: [usb-storage] Re: [PATCH] fix Sony USB mass storage - pass larger receive buffer
> Date: 2003-11-17 15:40:21 PST 
> ...
> And I failed to immediately grok `logger`.
> Instead I correlated my shell commands with my
> dmesg by patching usb-storage to trace cdb's. 

man 1 logger
man 3 syslog
man 5 syslog.conf

vi /etc/syslog.conf +/^..info
grep -B 1 debug /etc/syslog.conf
# reboot to relaunch syslogd, klogd, etc.

logger 'logger'
logger -p kern.emerg 'logger -p kern.emerg'
logger -p kern.info 'logger -p kern.info'
logger -p kern.debug 'logger -p kern.debug'

sudo tail /var/log/messages

### Pat LaVarre

P.S.

My `grep -B 1 /etc/syslong.conf` now is:

*.info;mail.none;news.none;authpriv.none;cron.none		/var/log/messages
*.debug		/var/log/messages

P.P.S.

> > subsscribe

If you prefer the spelling s u b s c r i b e, or if you see this post
more than once, then perhaps you should blame our aggressive "listar"
spam defences, which rejected the first transmission via a match on a
pattern something like ^ . s u b s c r i b e . * $ with the blanks
deleted.


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux