From owner-freebsd-doc Thu Sep 6 3:50:10 2001 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6801437B405 for ; Thu, 6 Sep 2001 03:50:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f86Ao2g46826; Thu, 6 Sep 2001 03:50:02 -0700 (PDT) (envelope-from gnats) Date: Thu, 6 Sep 2001 03:50:02 -0700 (PDT) Message-Id: <200109061050.f86Ao2g46826@freefall.freebsd.org> To: freebsd-doc@freebsd.org Cc: From: Ruslan Ermilov Subject: Re: docs/30374: logger(1) manpage has wrong with default value of -p option Reply-To: Ruslan Ermilov Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR docs/30374; it has been noted by GNATS. From: Ruslan Ermilov To: SUGIMURA Takashi 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