This property specifies the maximum number of gather logs that Search retains for this catalog.
Syntax
IGatherLogs.MaxLogs
Example
The following example displays the maximum number of gatherer logs that Search retains for the KMSampleCatalog1 catalog definition.
Option Explicit
On Error Resume Next
Dim objSearchAdmin, objBuildServer, objCatalogs, objCatalog, objLogs
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 & " retains " & objLogs.MaxLogs & " logs."
'Release objects
Set objLogs = Nothing
Set objCatalog = Nothing
Set objCatalogs = Nothing
Set objBuildServer = Nothing
Set objSearchAdmin = Nothing
See Also