[This is preliminary documentation and subject to change]

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.

Bitmask values
ConstantValueDescription
MD_LOGFILE_PERIOD_MAXSIZE0x00000000Create new log file after reaching maximum size.
MD_LOGFILE_PERIOD_DAILY0x00000001Create new log file daily.
MD_LOGFILE_PERIOD_WEEKLY0x00000002Create new log file weekly.
MD_LOGFILE_PERIOD_MONTHLY0x00000003Create new log file monthly.
MD_LOGFILE_PERIOD_HOURLY0X00000004Create a new log file hourly.
Attribute NameAttribute Value
Data TypeDWORD
AttributesINHERIT
Default Value1
MetaFlagsExCACHE_PROPERTY_MODIFIED | WAS_NOTIFICATION
User TypeIIS_MD_UT_SERVER
StartingNumber
EndingNumber0
ID4003

Access Locations

This property is accessible at the following locations:

Metabase PathIIS Admin Object Type
/LM/MSFTPSVC/Info/Templates/Public FTP SiteIIsFtpServer
/LM/MSFTPSVCIIsFtpService
/LM/NNTPSVC/1IIsNntpServer
/LM/NNTPSVCIIsNntpService
/LM/W3SVC/1IIsWebServer
/LM/W3SVC/2IIsWebServer
/LM/W3SVC/Info/Templates/Public Web SiteIIsWebServer
/LM/W3SVC/Info/Templates/Secure Web SiteIIsWebServer
/LM/W3SVCIIsWebService

IIS Admin Base Object Information

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

Metabase identifier
MD_LOGFILE_PERIOD
Data typeDWORD
User typeIIS_MD_UT_SERVER

Related Topics

LogFileTruncateSize

© 1997-2001 Microsoft Corporation. All rights reserved.