I have a cgi web program (in C) that prints out different error messages to a log file. If the program is run again and runs into he same error, I do not want the same error message to log again. I'm looking at different options and any advice is appreciated. Thanks.
-Cookie: unable to set cookie after the html <head>
section has been printed out.
(After the head section is where any errors would occur.)
-Database: Do not have one. Too much overhead for this issue to install one.
-Parse log file: Many other processes are writing to this log file.
-Hidden form inputs on html file: Seems messy. Have 3 different forms on the same html page. How do am I sure the hidden fields are always submitted regardless of which form is submitted? But one of the errors is when the html can not be produced, so can not depend on this.
Thanks.