Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Apr 2023 19:34:17 +0700
From:      Olivier <Olivier.Nicole@cs.ait.ac.th>
To:        Doug Hardie <bc979@lafn.org>
Cc:        questions@freebsd.org
Subject:   Re: syslog
Message-ID:  <wu7ttxumrsm.fsf@banyan.cs.ait.ac.th>
In-Reply-To: <5748DDF6-66A6-4BF5-83BA-51B08D025F46@sermon-archive.info> (message from Doug Hardie on Wed, 5 Apr 2023 03:39:33 -0700)

index | next in thread | previous in thread | raw e-mail

Doug Hardie <bc979@lafn.org> writes:

> I am writing a program that I would like to log some messages with LOG_DEBUG,
> and others with LOG_INFO and LOG_MAIL. I have tried openlog before each of
> them with the right facilities and levels, but some of the messages are
> simply dropped. It appears to change between invocations weather the debug or
> mail messages are dropped. Is there a way to do this?

It may be that the messages are received by syslog, but syslog decides
that they are not important enough and just don't save them on disk.

If you look at /etc/syslog.conf, you will see that many info messages do
not make it to the disk.

One solution would be to edit the config of syslog to log *.*

You can also test various messages with logger(1) manually, varying the
facility and priority.

Olivier


help

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