Click to Rate and Give Feedback
Collapse All/Expand All Collapse All
 Collapse AllExpand All      Code: All Code: Multiple Code: Visual Basic Code: C# Code: Visual C++ Code: JScript 
httpLogging Element [IIS Settings Schema]

NoteNote:

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.

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.

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

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

© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker