IEventLogger Interface

Inherited from

IDispatch

IUnknown

Applies to Objects

Event Logger

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

BinaryData

Sets the binary data, which is event specific

BinaryDataSize

Sets the size (in bytes) of binary data

EventCategory

Sets the category of the event. This is event source specific and can have any integer value

EventType

Sets the type of the event to log

LogEvent

This method actually logs the event to the windows event log under the registered event source name

RegisterCurrentEventSource

This method registers the event source name by creating a registry key entry in the windows registry

UserName

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: