Using redhat 64 bit ver 6.2
I have simple c++ app that is trying to write to syslog like this:
/*
try to write massage into linux log
*/
void foo::writeToSyslog()
{
openlog("testlogfoo", 0, 24);
// Send the message.
syslog(LOG_DEBUG, "this is test123");
}
That's it , but when I grep for testlogfoo
or this is test123
in /var/log, it dosn't find anything.
What am I doing wrong here?