Date: Sat, 9 Jan 1999 21:01:59 -0600 (CST) From: Stingray <chrisd@bsdbox.dynip.com> To: questions@FreeBSD.ORG Subject: syslog Message-ID: <Pine.BSF.3.96.990109205500.8630A-100000@bsdbox.dynip.com>
next in thread | raw e-mail | index | archive | help
This maybe somewhat off-topic, but here it goes anyway... I'm trying to write a simple program that uses syslog on my FreeBSD computer , but I can't get it to work: #include <syslog.h> #include <stdio.h> int main() { openlog("testing", LOG_NDELAY, LOG_DAEMON); syslog(LOG_DEBUG, "test"); closelog(); return 0; } It compiles, but when its run, it does nothing. does anyone know what's wrong with my program? 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?Pine.BSF.3.96.990109205500.8630A-100000>