CurrentLog Property

This read-only property specifies the log that Search is using to save the document names.

Syntax

IGatherLogs.CurrentLog

Example

The following example displays the name of the current gatherer log for the KMSampleCatalog2 catalog definition.

Option Explicit 
On Error Resume Next

Dim objSearchAdmin, objBuildServer, objCatalogs, objCatalog, objLogs, objLog 

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

Wscript.Echo objLog & " is the current gatherer log For " objCatalog.Name 

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

© 1997-1998 Microsoft Corporation. All rights reserved.