LogFormat Property  
 

Gets and sets the format used when updating the server log file.

Syntax

object.LogFormat [ = format ]

Remarks

The LogFormat property is used to specify the format of the server log file. It may be one of the following values:

Value Description
httpLogNone This value specifies that the server should not create or update a log file. This is the default property value.
httpLogCommon 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 GET, PUT and POST requests.
httpLogCombined 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.
httpLogExtended 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. This format typically generates the largest logfiles.

Data Type

Integer (Int32)

Example

' Enable server logging
HttpServer1.LogFile = "%ALLUSERSPROFILE%\MyProgram\Server.log"
HttpServer1.LogFormat = httpLogExtended
HttpServer1.LogLevel = 5

See Also

LogFile Property, LogLevel Property