Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Sep 2001 03:50:02 -0700 (PDT)
From:      Ruslan Ermilov <ru@freebsd.org>
To:        freebsd-doc@freebsd.org
Subject:   Re: docs/30374: logger(1) manpage has wrong with default value of -p option
Message-ID:  <200109061050.f86Ao2g46826@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR docs/30374; it has been noted by GNATS.

From: Ruslan Ermilov <ru@FreeBSD.ORG>
To: SUGIMURA Takashi <sugimura@jp.FreeBSD.org>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: docs/30374: logger(1) manpage has wrong with default value of -p option
Date: Thu, 6 Sep 2001 12:24:10 +0300

 On Thu, Sep 06, 2001 at 01:46:51AM -0700, SUGIMURA Takashi wrote:
 > 
 > In manpage of logger(1),
 > 
 >      -p pri  Enter the message with the specified priority.  The priority may
 >              be specified numerically or as a ``facility.level'' pair.  For
 >              example, ``-p local3.info'' logs the message(s) as informational
 >              level in the local3 facility.  The default is ``user.notice.''
 > 
 > but this default value is wrong.
 > 
 > It seems ``kern.notice.''
 > 
 > 
 > >How-To-Repeat:
 > simply run logger such as following;
 > 
 > % logger hogehoge
 > 
 > getting syslog packet, it has "<5>hogehoge" sequence.
 > 5 is 0x0000 plus 0x0101, so its facility is "kern"
 > and its priority is "notice".
 > 
 I see this: ``Sep  6 12:18:32 <1.5> perl ru: hogehoge''
 which means (1<<3) | 5 == LOG_USER | LOG_NOTICE.
 
 This is also the default facility, as per syslog(3):
 
 :  LOG_USER      Messages generated by random user processes.  This is the
 :                default facility identifier if none is specified.
 
 And the logger(1)'s code matches the default.
 
 
 Cheers,
 -- 
 Ruslan Ermilov		Oracle Developer/DBA,
 ru@sunbay.com		Sunbay Software AG,
 ru@FreeBSD.org		FreeBSD committer,
 +380.652.512.251	Simferopol, Ukraine
 
 http://www.FreeBSD.org	The Power To Serve
 http://www.oracle.com	Enabling The Information Age

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200109061050.f86Ao2g46826>