Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Sep 2000 00:02:08 +0200
From:      Frank Sonnemans <frank.sonnemans@euronet.be>
To:        questions@freebsd.org
Subject:   setting syslog priority mask
Message-ID:  <20000929000208.B1567@scuba.sbs-online.com>

next in thread | raw e-mail | index | archive | help
How do you set the syslog priority mask to include LOG_DEBUG messages. I tried:

openlog("Logtest", LOG_PERROR | LOG_PID, LOG_USER);
setlogmask(LOG_UPTO(LOG_DEBUG));
syslog(LOG_DEBUG, "Debug message");
closelog();

but this doesn't work. All messages with priorities below LOG_WARNING (LOG_INFO, LOG_DEBUG) are not
accepted by the syslog.

Regards,


Frank


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




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