This read-only property specifies the name of the log.
Syntax
IGatherLog.Name
Example
The following example displays the name of the current gatherer log.
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 "The current gatherer log is " & objLog.Name
'Release objects
Set objLog = Nothing
Set objLogs = Nothing
Set objCatalog = Nothing
Set objCatalogs = Nothing
Set objBuildServer = Nothing
Set objSearchAdmin = Nothing
See Also