This read-only property accesses a log in the list of gather logs.
Syntax
IGatherLogs[.Item(Log)]
Settings
Log
The gatherer log.
Remarks
Since IGatherLogs is a collection, you need only include Item to access an IGatherLogs object by name (see the following Example).
Example
The following example displays the name of all of the gatherer logs for the KMSampleCatalog1 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("KMSampleCatalog1")
Set objLogs = objCatalog.objLogs
Wscript.Echo objCatalog.Name & " has the following gatherer logs:"
For Each objLog in objLogs
Wscript.Echo " " & objLog.name
Next
'Release objects
Set objLog = Nothing
Set objLogs = Nothing
Set objCatalog = Nothing
Set objCatalogs = Nothing
Set objBuildServer = Nothing
Set objSearchAdmin = Nothing
See Also