home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / ultrix / 8918 < prev    next >
Encoding:
Text File  |  1992-12-16  |  1.8 KB  |  52 lines

  1. Newsgroups: comp.unix.ultrix
  2. Path: sparky!uunet!munnari.oz.au!manuel.anu.edu.au!dubhe.anu.edu.au!csis!pierre
  3. From: pierre@csis.dit.csiro.au (Peter Nikitser)
  4. Subject: syslog operations
  5. Message-ID: <1992Dec17.033606.19166@csis.dit.csiro.au>
  6. Organization: CSIRO Division of Information Technology
  7. Date: Thu, 17 Dec 1992 03:36:06 GMT
  8. Lines: 42
  9.  
  10. I am trying to compile a set of C programs that use openlog and syslog calls.
  11. Ultimately, I want to write the information from these calls into a certain
  12. log file.
  13.  
  14. However, when I run the program, ALL information is logged into the mail log
  15. file. /var/spool/mqueue/syslog, which I don't want!!!
  16.  
  17. Reading TFM for syslog(8), all I can glean from the info provided is that
  18. an /etc/syslog.conf file must have lines of the format:
  19.  
  20.     <priority>[optional asterisk]<log file>
  21.  
  22. e.g.
  23.  
  24.     8/var/spool/mqueue/syslog
  25.  
  26. where priority is defined in /usr/include/syslog.h.
  27.  
  28. In the real world of using syslog (i.e. read using a Sun), I can define
  29. an optional facility (LOCAL0 through to LOCAL7 = priorities 16 to 23)
  30. for my own use, and this works fine.
  31.  
  32. Back in the DECstation world, I have attempted to define my own include
  33. file with priorities greater than 9, to no avail.  I have even tried
  34. using LOG_DEBUG (priority 9) and LOG_NOTICE (priority 7), also with
  35. the same result; ALL information is still written to /var/spool/mqueue/syslog.
  36.  
  37. And yes, I have killed, waited 30 seconds, and restarted syslog as per TFM.
  38.  
  39. One small word: H E L P
  40.  
  41. Any tips/pointers would be helpful.
  42.  
  43. Thanks,
  44.  
  45. Pierre.
  46.  
  47. -- 
  48. peter.nikitser@csis.dit.csiro.au              UNIX Systems Programmer
  49. CSIRO Division of Information Technology      Computing Facilities Management
  50. GPO Box 664                                   tel: +61-6-275-0926
  51. Canberra   ACT   2600      Australia          fax: +61-6-257-1052
  52.