[This is preliminary documentation and subject to change]
This metabase property specifies how often Microsoft Windows® should create a new log file. This property can be set to the following values: 1 (daily), 2 (weekly), 3 (monthly), or 4 (hourly). If this property is set to 0, a new file will be created when the maximum size designated in LogFileTruncateSize is reached.
Bitmask values| Constant | Value | Description |
| MD_LOGFILE_PERIOD_MAXSIZE | 0x00000000 | Create new log file after reaching maximum size. |
| MD_LOGFILE_PERIOD_DAILY | 0x00000001 | Create new log file daily. |
| MD_LOGFILE_PERIOD_WEEKLY | 0x00000002 | Create new log file weekly. |
| MD_LOGFILE_PERIOD_MONTHLY | 0x00000003 | Create new log file monthly. |
| MD_LOGFILE_PERIOD_HOURLY | 0X00000004 | Create a new log file hourly. |
| Attribute Name | Attribute Value |
| Data Type | DWORD |
| Attributes | INHERIT |
| Default Value | 1 |
| MetaFlagsEx | CACHE_PROPERTY_MODIFIED | WAS_NOTIFICATION |
| User Type | IIS_MD_UT_SERVER |
| StartingNumber | |
| EndingNumber | 0 |
| ID | 4003 |
This property is accessible at the following locations:
| Metabase Path | IIS Admin Object Type |
| /LM/MSFTPSVC/Info/Templates/Public FTP Site | IIsFtpServer |
| /LM/MSFTPSVC | IIsFtpService |
| /LM/NNTPSVC/1 | IIsNntpServer |
| /LM/NNTPSVC | IIsNntpService |
| /LM/W3SVC/1 | IIsWebServer |
| /LM/W3SVC/2 | IIsWebServer |
| /LM/W3SVC/Info/Templates/Public Web Site | IIsWebServer |
| /LM/W3SVC/Info/Templates/Secure Web Site | IIsWebServer |
| /LM/W3SVC | IIsWebService |
The following table lists additional information required only for code that uses the IIS Admin Base Object.
| Metabase identifier | MD_LOGFILE_PERIOD |
| Data type | DWORD |
| User type | IIS_MD_UT_SERVER |
Related Topics
| LogFileTruncateSize |