LogExcluded Property

This property specifies whether to log the names of documents excluded from crawling.

Syntax

IBuildCatalog.LogExcluded [=Exclude]

Parameters

Exclude

If True, the names of excluded files are logged; if False, the names of the excluded files are not logged.

Example

The following example logs the files that are excluded during the building of the KMSampleCatalog2 catalog definition.

Option Explicit 
On Error Resume Next

Dim objSearchAdmin, objBuildServer, objCatalogs, objCatalog 

Set objSearchAdmin = CreateObject("Search.SearchAdmin.1")
Set objBuildServer = objSearchAdmin.BuildServer
Set objCatalogs = objBuildServer.BuildCatalogs 
Set objCatalog  = objCatalogs("KMSampleCatalog2")

objCatalog.LogExcluded = True

'Release objects
objCatalog = Nothing
Set objCatalogs = Nothing 
Set objBuildServer = Nothing
Set objSearchAdmin = Nothing 
 

See Also

Logs, LogSuccess


© 1997-1998 Microsoft Corporation. All rights reserved.