Share via


IIsLogModules (ADSI)

The IIsLogModules object is an ADSI container object that contains the collection of IIsLogModule objects. You can use the IIsLogModules object to manage log modules at the computer level (IIsComputer).

The IIsLogModules object is an ADSI container object.

ADsPath

IIS://MachineName/LOGGING

where MachineName can be any name or LocalHost.

Syntax

varReturn**=**object.Method

Parameters
  • varReturn
    A variable that receives the return value from the method.
  • object
    A variable that contains the IIsLogModules object, usually as a result of a previous GetObject operation.
  • Method
    The object method chosen.
Can Contain
IIsLogModule (ADSI)
Properties
Windows ADSI Object Properties
Methods
Windows ADSI Object Methods Standard methods for ADSI objects.
Windows ADSI Container Object Methods Standard methods for ADSI container objects.
Code Example
  <% 
'Get log properties for a log module at a server. 
  Dim LoggingModules, CurrentObj 
'Get the object for the first Web server.
  Set CurrentObj = GetObject("IIS://LocalHost/W3SVC/1") 
'Access the log modules at the computer level.
  Set LoggingModules = GetObject("IIS://LocalHost/logging") 
'Loop through the installed modules to find the currently 
'selected module at this server. 
  If CurrentObj.LogPluginClsid <> "" Then 
    For Each LogModule in LoggingModules 
      If LogModule.LogModuleID = CurrentObj.LogPluginClsid Then 
      Response.Write LogModule.Name & "<BR>" 
      End If 
    Next 
  'Display a property of the current module. 
  Response.Write CurrentObj.LogFileDate 
  End If 
%>