centralW3CLogFile Element for log [IIS Settings Schema]
Note
For more information about the centralW3CLogFile element, see the following topic on the Microsoft IIS.net Web site: Central W3C Log File <centralW3CLogFile>.
Specifies the central W3C log settings for all sites on a server.
Syntax
Attributes and Elements
The following sections describe attributes, child elements, and parent elements for this section.
Attributes
Attribute |
Description |
||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
directory |
Optional string attribute. Specifies the directory where log entries are written. The default value is "%SystemDrive%\inetpub\logs\LogFiles". |
||||||||||||||||||||||||
enabled |
Optional Boolean attribute. Specifies whether central W3C logging is enabled. The default value is true. |
||||||||||||||||||||||||
localTimeRollover |
Optional Boolean attribute. Specifies whether a new log file is created based on local time or Coordinated Universal Time (UTC). Note A value of true means the new log file is based on local time; false means it is based on UTC. The default value is talse. |
||||||||||||||||||||||||
logExtFileFlags |
Optional enum attribute. Specifies which fields to log. The logExtFileFlags attribute can be one of the following values or a list of these values. The default is a list of these values: Date, Time, ClientIP, UserName, SiteName, ServerIP, Method, UriStem, UriQuery, HttpStatus, Win32Status, ServerPort, UserAgent, HttpSubStatus.
|
||||||||||||||||||||||||
period |
Optional enum attribute. Specifies how frequently the current log file is closed and a new log file is started. The period attribute can be one of the following possible values. The default is false.
|
||||||||||||||||||||||||
truncateSize |
Optional int attribute. Specifies the size, in bytes, at which the log file contents will be truncated. This attribute must be set when the value of the period attribute is maxSize. The size must be between 1048576 (1 megabyte) and 4294967295 (4 gigabytes). The default value is 20971520 (20 megabytes). |
Child Elements
None.
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. |
log |
Specifies the logging mode for a server. |
Remarks
For more information about the centralW3CLogFile element, see the following topic on the Microsoft IIS.net Web site: Central W3C Log File <centralW3CLogFile>.
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 |