I'm using Red Hat 6.0 on a testing server. My code contains

syslog(pri,"(%u)%s",(unsigned int)getTid(),buf);

The log message in syslog looks like

(18597)DES=Recved confirmation of successful reception from 172.16.88.185:8889.

How can I configure syslog.conf to make log message priority show up in syslog?

Edit:
getTid is the function I used to get the thread id; buf(const char*) is a variable I used for the log message, pri is the log level I set, e.g. LOG_ERR, LOG_DEBUG, &c.

When I ask about "log message priority," I mean LOG_ERR, LOG_INFO, &c.

link|improve this question
feedback

1 Answer

Your syslogd or sysklogd may not be able to do this. rsyslog can do that, see http://www.rsyslog.com/

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.