Compartir a través de


LogType

The LogType property indicates whether logging to the IIS log files is enabled. IIS log files are stored in %SystemRoot%\system32\Logfiles\<Service_Type><Site_Number>. This property is read-write.

If LogType is set to 0, then logging is disabled. If LogType is set to 1, then logging is enabled. To disable logging for child nodes under a parent node for which LogType is set to 1, set the DontLog property to on the child nodes.

ASP and ODBC errors do not get logged to the IIS log files. For more information, see IIS Error Codes.

Schema Attributes

Attribute Name

Value

ADSI/WMI Data Type

DWORD

ABO Data Type

DWORD_METADATA

Schema Default

1

Internal Default

1

Upper Bound

1

Lower Bound

Not specified

Internal ID

4000

Friendly ID

MD_LOG_TYPE

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, or Windows 2000 Professional.

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

Product: IIS

See Also