Share via


log Element for system.applicationHost [IIS Settings Schema]

Note

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

Specifies the logging mode for a server.

Syntax

Attributes and Elements

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

Attributes

Attribute

Description

centralLogFileMode

Optional enum attribute.

Specifies the central logging mode for the server.

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

The default is Site.

ValueDescription
SiteConfigures all sites to use site logging instead of central logging. This is the default setting. The numerical value is 0.
CentralBinaryCreates one log file for all Web sites on a Web server. The data in the log file is binary-based, unformatted data that is not customizable. The numerical value is 1.
CentralW3CLogs requests for all sites on a Web server to a single central log file in a text-based, customizable ASCII format. The numerical value is 2.

logInUTF8

Optional Boolean attribute.

Specifies whether IIS should log all strings in UCS Transformation Format 8 (UTF-8). This setting applies to all text-mode logging server-wide.

The default value is true.

Child Elements

Element

Description

centralBinaryLogFile

Optional element.

Specifies the central binary log settings for all sites on a server.

centralW3CLogFile

Optional element.

Specifies the central W3C log settings for all sites on a server.

Parent Elements

Element

Description

configuration

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

system.applicationHost

Specifies the root element for configuring Web process settings.

Remarks

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

Element Information

Configuration locations

Machine.config

ApplicationHost.config

Requirements

Microsoft Internet Information Services (IIS) version 7.0

See Also

Reference

centralBinaryLogFile Element for log [IIS Settings Schema]

centralW3CLogFile Element for log [IIS Settings Schema]