HP3000-L Archives

November 1999, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Bixby <[log in to unmask]>
Reply To:
Mark Bixby <[log in to unmask]>
Date:
Mon, 1 Nov 1999 17:00:22 -0800
Content-Type:
text/plain
Parts/Attachments:
text/plain (16 lines)
RON HORNER wrote:
>
> How can I have my programs write messages to the syslog daemon?

By calling the openlog(), syslog(), closelog() C routines in
/SYSLOG/PUB/libsyslog.a.

Or since SYSLOGD is just listening for UDP packets on port 514, you could code
the network calls yourself needed to send the single packet.

I assume there's an RFC somewhere that describes the packet format, or you can
download my freeware source from http://www.bixby.org/mark/syslogix.html and
determine the format from that.

- Mark B.

ATOM RSS1 RSS2