LogLevel Property  

Gets and sets the level of detail included in the server log file.


object.LogLevel [ = level ]


The LogLevel property is used to specify the level of detail that should generated in the log file. The minimum value is 1 and the maximum value is 10. If this parameter is zero, it is the same as specifying a log file format of httpLogNone and will disable logging by the server

Data Type

Integer (Int32)


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

See Also

LogFile Property, LogFormat Property