### LogFilePeriod

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.

Data type | Long
Default value | 1 (Create new log file daily)
Inheritance | Inheritable

###### Access Locations

This property is accessible at the following locations:

Metabase Path | Key Type
/LM/MSFTPSVC | IIsFtpService
/LM/MSFTPSVC/N | IIsFtpServer
/LM/W3SVC | IIsWebService
/LM/W3SVC/N | IIsWebServer

###### IIS Admin Base Object Information

The following tables list additional information required only for code that uses the IIS Admin Base Object.

Metabase identifier | MD_LOGFILE_PERIOD
Data type | DWORD_METADATA
User type | IIS_MD_UT_SERVER

###### 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.

###### See Also

LogFileTruncateSize

© 1997-2001 Microsoft Corporation. All rights reserved.