3.4. Viewing Session Logs

ComPactHTTPd produces various amounts of logging output (depending on several configuration variables) for every session. The default for all log output is to be written to stdout, which is fine when you start your server from a dedicated terminal window. You may want to write the session logs to files for later perusal, or just want to view them in a browser window.

If you want to use external logfiles, just define the configuration variable httpd-logfile. Its value should contain the string {?Session} if you want separate logfiles for all sessions.

If you want to view the files in a browser window, you must undefine the variable httpd-logfile and instead set httpd-internal-log to yes. If you happen to use a browser which interprets JavaScript, for every new session you create an associated log window will be opened. This is done by keeping all logging information internal and sending it continually to the browser. Your browser must of course be able to execute several actions in parallel.

How much and what kinds of log, trace, and debugging information you get is defined by the values of the variables httpd-trace, httpd-debug, httpd-verbose.