Instantiating the Logging Utility Component

To create an object variable containing an instance of the Logging Utility component, use the CreateObject method of the Server object. The syntax for the CreateObject method is as follows:

Set objMyObject = Server.CreateObject(strProgId)

where:

  • objMyObject represents the name of a Logging Utility object.

  • strProgId represents the programmatic identifier (ProgID) for the Utility component; its ProgID is MSWC.IISLog.

Get ASP in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.