다음을 통해 공유


LogType Metabase Property

Applies To: Windows Server 2003, Windows Server 2003 with SP1

The LogType property indicates whether logging to the IIS log files is enabled. IIS log files are stored in systemroot\system32\Logfiles\. 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 whom LogType is set to 1, set the DontLog property to TRUE on the child nodes.

ASP and ODBC errors do not get logged to the IIS log files.

Attribute Name Attribute Value

XML Data Type

DWORD

WMI Data Type

SINT32

ADSI Data Type

DWORD

ABO Data Type

DWORD

ABO Metabase Identifier

MD_LOG_TYPE

Attributes

INHERIT

Default Value

1

MetaFlagsEx

CACHE_PROPERTY_MODIFIED

User Type

IIS_MD_UT_SERVER

ID

4000

Configurable Locations

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

Metabase Path IIS Admin Object Type

/LM/W3SVC/n

IIsWebServer

/LM/MSFTPSVC/n

IIsFtpServer

/LM/W3SVC

IIsWebService

/LM/MSFTPSVC

IIsFtpService

/LM/NNTPSVC

IIsNntpService

/LM/NNTPSVC/n

IIsNntpServer

/LM/SMTPSVC

IIsSmtpService

/LM/SMTPSVC/n

IIsSmtpServer

Code Example

For general code examples, see Code Examples to Configure Metabase Properties.