LogSuccess Property

This property specifies whether to log the names of documents successfully crawled.

Syntax

IBuildCatalog.LogSuccess [=Success]

Settings

Success

If True, Search logs the names of files that are successfully searched; if False, Search does not log the names of files that are successfully searched.

Example

The following example logs the files that were successfully crawled during the building of the catalog specifiec by 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.LogSuccess = True

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

See Also

LogExcluded, Logs


© 1997-1998 Microsoft Corporation. All rights reserved.