Condividi tramite


httpLogging Element [IIS Settings Schema]

Note

For more information about the httpLogging element, see the following topic on the Microsoft IIS.net Web site: HTTP Logging <httpLogging>.

Specifies configuration settings for HTTP.sys logging.

Syntax

Attributes and Elements

The following sections describe attributes, child elements, and parent elements for this section.

Attributes

Attribute

Description

dontLog

Optional Boolean attribute.

Specifies whether HTTP logging is enabled for successful requests. A request is considered successful if its status code is less than 400.

The default value is false.

selectiveLogging

Optional enum attribute.

Specifies which type of requests to log.

The selectiveLogging attribute can be one of the following possible values.

The default value is LogAll.

ValueDescription
LogAllLogs all requests. The numeric value is 0.
LogSuccessfulLogs only successful requests. The HTTP status code range for successful requests is 100-399. The numeric value is 1.
LogErrorLogs only unsuccessful requests. The HTTP status code range for unsuccessful requests is 400-999. The numeric value is 2.

Child Elements

None.

Parent Elements

Element

Description

configuration

Specifies the root element in every configuration file that is used by IIS 7.

system.webServer

Specifies the top-level section group (in ApplicationHost.config) in which this element is defined.

Remarks

For more information about the httpLogging element, see the following topic on the Microsoft IIS.net Web site: HTTP Logging <httpLogging>.

Element Information

Configuration locations

Machine.config

ApplicationHost.config

Root application Web.config

Application Web.config

Directory Web.config

Requirements

Microsoft Internet Information Services (IIS) version 7.0

See Also

Reference

HttpLoggingSection Class [IIS 7 and higher]