Openlog and syslog in red-hat Linux doesn't write any thing to /var/log/*

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?

Just to make sure: have you put a respective rule in syslogd.conf so that youe message gets indeed written to a file?

I hope this helps.

bakunin