Inherited from
Applies to Objects
This interface is exposed from the Event Logger object and is the primary interface for this object. It is useful for setting details of an event. It also includes methods to log the events to the Windows Event Log.
Property/Method |
Description |
Sets the binary data, which is event specific |
|
Sets the size (in bytes) of binary data |
|
Sets the category of the event. This is event source specific and can have any integer value |
|
Sets the type of the event to log |
|
This method actually logs the event to the windows event log under the registered event source name |
|
This method registers the event source name by creating a registry key entry in the windows registry |
|
Sets the name of the user who is logging the event |
Example
Dim EventLog As IEventLogger
'Get the interface. 'DirectScript.EventLogger.1'is the ProgId of
'the Event Logger component
Set EventLog = CreateObject ("DirectScript.EventLogger.1")
See Also:
Event Logging