[ntp:hackers] question about msyslog
Harlan Stenn
stenn at ntp.org
Thu Jun 11 07:34:25 UTC 2009
Reg,
> I'm converting the ONCORE driver to use msyslog (it will still write
> to clockstats) and have a question.
You might want to talk to Max (kuehn at ntp.org) - he's doing:
http://support.ntp.org/bin/view/Dev/GSoC2009LoggingAndDebugging
> Looking at ntpd, I see the use of 'openlog', so Im assuming that
> msyslog writes to the system log file, but msyslog.c itself is such a
> pile of #ifdef's that I cant tell what it is trying to do.
Yup...
> So the question: Does msyslog write to the system log file (under
> UNIX). If so, it would seem to be writing with facility 'LOG_DAEMON'
> since 'LOG_NTP' is not defined,
Yup...
> but when I put the following line in my /etc/syslog.conf file I see
> nothing.
>
> daemon.* /var/log/ntpstats/syslog
>
> so how is this supposed to work?
Does /var/log/ntstats/syslog exist? syslogd will not create a logfile
that does not exist. It's documented, and is usually a feature...
> [[ When I start ntpd in debug mode with -d, I do see these messages being
> written to standard out... , but my question is about syslog itself ]]
Understood...
H
More information about the hackers
mailing list