CHttpServer::m_nLogFormat  
 
UINT m_nLogFormat;

The format used when updating the server log file.

Remarks

The m_nLogFormat data member is a public variable that specifies the format of the log file that is created or updated by the server. It may be one of the following values:

Value Description
HTTP_LOGFILE_NONE This value specifies that the server should not create or update a log file.
HTTP_LOGFILE_COMMON This value specifies that the log file should use the common log format that records a subset of information in a fixed format. This log format usually only provides information about file transfers.
HTTP_LOGFILE_COMBINED This value specifies that the server should use the combined log file format. This format is similar to the common format, however it includes the client referrer and user agent. This is the format that most Apache web servers use by default.
HTTP_LOGFILE_EXTENDED This value specifies that the log file should use the standard W3C extended log file format. This is an extensible format that can provide additional information about the client session.

By default, logging is not enabled for the server. Changing the value of this data member does not have an effect on an active instance of the server. To change the format, level of detail or default log file name, use the SetLogFile method.

See Also