Logging Page
Applies To: Windows Server 2008
Use the Logging feature page to configure how IIS logs requests made to the Web server and when new log files are created.
UI Element List
The following tables describe the UI elements that are available on the feature page and in the Actions pane.
Feature Page Elements
Element Name | Description | ||
---|---|---|---|
One log file per |
Specifies whether the Web server maintains one log file for the whole server or one log file for each site on the server. When you select Site, the settings that you specify on the Logging page at the server level are default values for all sites on your server. You can then open the Logging page at the site level to configure specific settings for a site. |
||
Format |
Specifies the format of the log file that is created when a request is logged. When you configure the Web server to have one log file, you can select one of the following log file formats:
When you configure the Web server to have one log file per site, you can select one of the following log file formats:
|
||
Select Fields |
Opens the W3C Logging Fields dialog box in which you can select which fields to log. This button is available only when the W3C log file format is selected. |
||
Directory |
Specifies the physical path where the log file or files are stored. The default value is %SystemDrive%\inetpub\logs\LogFiles. |
||
Encoding |
Specifies how the log file or log files are encoded: UTF-8 or ANSI. Select UTF-8 when you want to enable both single-byte and multibyte characters in one string. This encoding enables you to read text-based logs, for example, W3C Extended, IIS, and National Center for Supercomputing Applications (NCSA) Common formats, in a language other than English. Additionally, if your Web server serves URLs in a language or dialect other than the one supported by the server's default code page, you should enable UTF-8 encoding for log content. By default, IIS tries to serve URLs in code pages other than the server's default code page. For security reasons, you might want to enable the UTF-8 format to reduce the effect of an attack that could cause UTF-8 URLs not to translate correctly to the default code page. |
||
Schedule |
Configures IIS to create new log files based one of the following values:
|
||
Maximum file size (in bytes) |
Configures IIS to create a new log file when the file reaches a certain size (in bytes). The minimum file size is 1048576 bytes. If this attribute is set to a value less than 1048576 bytes, the default value is implicitly assumed as 1048576 bytes. |
||
Do not create new log files |
Configures IIS to not create new log files. This means that there is a single log file that will continue to grow as information is logged. |
||
Use local time for file naming and rollover |
Specifies that log file naming and time for log file rollover uses the local server time. When this is not selected, Coordinated Universal Time (UTC) is used. Note Regardless of this setting, timestamps in the actual log file will use the time format for the log format that you select from the Format list. For example, NCSA and W3C log file formats use UTC time format for timestamps.
|
Actions Pane Elements
Element Name | Description |
---|---|
Apply |
Saves the changes that you have made on the feature page. |
Cancel |
Cancels the changes that you have made on the feature page. |
Disable |
Disables the feature. |
View Log Files |
Opens the log file directory. |