Compartilhar via


LogFileTruncateSize

The LogFileTruncateSize property specifies the maximum size of the log file (in bytes). A new log file is created if a logging event causes the original log file to exceed the size specified in this property.

Note

The minimum file size allowed is 131,072 bytes. If this property is set to a value less than 131,072 bytes, the default value is implicitly assumed as 131,072 bytes.

Schema Attributes

Attribute Name

Value

ADSI/WMI Data Type

DWORD

ABO Data Type

DWORD_METADATA

Schema Default

2000000

Internal Default

20971520

Upper Bound

Not specified

Lower Bound

Not specified

Internal ID

4004

Friendly ID

MD_LOGFILE_TRUNCATE_SIZE

Property Attributes

INHERIT

User Type

IIS_MD_UT_SERVER

Configurable Locations

You can configure this property at the following locations in the IIS metabase.

Metabase Path

IIS Admin Object Type

/LM/W3SVC

IIsWebService

/LM/MSFTPSVC

IIsFtpService

/LM/W3SVC/n

IIsWebServer

/LM/MSFTPSVC/n

IIsFtpServer

/LM/NNTPSVC

IIsNntpService

/LM/NNTPSVC/n

IIsNntpServer

/LM/SMTPSVC

IIsSmtpService

/LM/SMTPSVC/n

IIsSmtpServer

Flags

There are no flags for this property.

Requirements

Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS

See Also