0
votes

We are moving from a RHEL5.x platform to a RHEL6 platform. RHEL5.x had the syslogd while RHEL6.x has rsyslogd.

I have legacy C code that makes these kinds of calls

foo.c
#include <syslog.h>
...snip
syslog(LOG_NOTICE, "Using configuration: %d\n", g_config_index+1);
...snip

How do I convert this to use rsyslog instead?

1

1 Answers

2
votes

You don't need to change anything. The <syslog.h> interface is not specific to syslogd; it's implemented by all system logger daemons, including rsyslogd as well as more exotic loggers like systemd.