home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / aux / 4733 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.4 KB  |  40 lines

  1. Newsgroups: comp.unix.aux
  2. Path: sparky!uunet!UB.com!pacbell.com!decwrl!usenet.coe.montana.edu!saimiri.primate.wisc.edu!ames!nsisrv!jagubox!jim
  3. From: jim@jagubox.gsfc.nasa.gov (Jim Jagielski)
  4. Subject: Test this please... syslogd "problem"?
  5. Message-ID: <1392@jagubox.gsfc.nasa.gov>
  6. Lines: 27
  7. Sender: usenet@nsisrv.gsfc.nasa.gov (Usenet)
  8. Nntp-Posting-Host: jagubox.gsfc.nasa.gov
  9. Reply-To: jim@jagubox.gsfc.nasa.gov (Jim Jagielski)
  10. Organization: NASA/Goddard Space Flight Center
  11. Date: Tue, 26 Jan 1993 19:18:41 GMT
  12.  
  13. Could some people try compiling this code-snatch and Emailing me the
  14. results... i.e., if the stuff actually gets logged by syslogd.
  15.  
  16. Thanks!
  17.  
  18. ------>8 cut here------------
  19. #include <stdio.h>
  20. #include <sys/syslog.h>  
  21.  
  22. main()
  23. {
  24.         openlog("test", LOG_CONS|LOG_PID, LOG_DAEMON);
  25.         syslog(LOG_EMERG, "testing EMERG");
  26.         syslog(LOG_ALERT, "testing ALERT");
  27.         syslog(LOG_CRIT, "testing CRIT");
  28.         syslog(LOG_ERR, "testing ERR");
  29.         syslog(LOG_WARNING, "testing warning");
  30.         syslog(LOG_NOTICE, "testing NOTICE");
  31.         syslog(LOG_INFO, "testing INFO");
  32.         syslog(LOG_DEBUG, "testing debug");
  33. }
  34. ------>8 cut here------------
  35. -- 
  36.     Jim Jagielski               | "I'd keep playing... I don't think
  37.     jim@jagubox.gsfc.nasa.gov   |  the heavy stuff's gonna come down
  38.     NASA/GSFC, Code 734.4       |  for quite a while."
  39.     Greenbelt, MD 20771         |                        - Carl
  40.