How to Redirect the error messages from Syslog file to our own Application Log File

Hello,
I am New to Unix.

I am Using HP-UX 9000 Series for my Application.

I am Currently Facing an Issue that the error messages are being written in the syslog file instead of the Application Log File. The Codes for that Syslog.h is written in Pro*C.

I want to know how to Redirect these Error Messages from the syslog Files to the Application Log Files.

Is there any Code Changes Required,If so Please send me a Sample Code so that it will be of some use for me.

Help of any kind will of Greatful to me.

With Regards,
Bala.

Use "2> error_log_name" at the end of the line to redirect your errors.

That won't work - what the OP means is that the ProC progam is calling syslog(). I assume that since it is the easiest way to write to the sytem log.

One solution is to write a cron job that greps out recent entries from the app - if you can identify them - from the syslog.

Is there a non-standard syslog.h header file that the ProC program is using? The one that is included with the OS is in the "/usr/include" directory. Can you attach the source code of the ProC program.