3

What is the standard way to log error messages in CGI programs. Using cout or printf in a CGI program, which is run by Apache (/var/www/cgi-bin), interrupts the communication while no messages are logged. How an error message can be redirected to Apache log file while it does not interrupt the communication and the execution of the application?

1 Answer 1

1

try using cerr or:

fprintf(stderr, "log messages");
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.