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