IIsLogModules

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.

The IIsLogModules object is an ADSI container object.

ADsPath

IIS://MachineName/logging

Where MachineName can be any name or "LocalHost".

Syntax

varReturn = object.{Method}
 

Parts

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.

May contain

IIsLogModule

Properties

ADSI Object Properties

Methods

ADSI Object Methods Standard methods for ADSI objects
ADSI Container Object Methods Standard methods for ADSI container objects
Common Object Methods Methods, other than ADSI methods, common to all IIS Admin 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 
%>