can't seem to get syslog working
- From: munky <mk@xxxxxx>
- Date: Thu, 30 Aug 2007 14:29:36 GMT
Hello,
My system is an EL4 setup.
I've written a simple program and I'd expect this to log to /var/log/messages but unfortunately this remains resolutely empty.
#include <syslog.h>
int main(int argc, char *argv[])
{
openlog("logtest", LOG_PID, LOG_LOCAL1);
syslog(LOG_INFO, "Program started by User");
closelog();
return 0;
}
my /etc/syslog.conf is pretty much the default, which indicates that it should be logging info messages or higher.
# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.* /dev/console
# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none;cron.none /var/log/messages
# The authpriv file has restricted access.
authpriv.* /var/log/secure
# Log all the mail messages in one place.
mail.* -/var/log/maillog
# Log cron stuff
cron.* /var/log/cron
# Everybody gets emergency messages
*.emerg *
# Save news errors of level crit and higher in a special file.
uucp,news.crit /var/log/spooler
# Save boot messages also to boot.log
local7.* /var/log/boot.log
I've checked with ps and syslogd is running!
I'd appreciate any ideas.
MTIA.
.
- Follow-Ups:
- Re: can't seem to get syslog working
- From: Martin Blume
- Re: can't seem to get syslog working
- Prev by Date: Linus Torvalds talks future of Linux (apcmag interview)
- Next by Date: Re: {POLL} Windows Vista vs. Linux ? Worth the upgrade ? Worth the switchover
- Previous by thread: Linus Torvalds talks future of Linux (apcmag interview)
- Next by thread: Re: can't seem to get syslog working
- Index(es):
Relevant Pages
|