Description

McEventLog lets you manipulate the logs which record information about important application events that occur.

Remarks

An instance of this object is exposed as the EventLog McEngine property. This coclass implements McEventLog and fires events described in DMcEventLogEvents.

Members

Methods
Clear

Clears the log file.

WriteEntry

Writes an entry of the specified type with the user-defined eventID and category to the event log, and optionally appends binary data to the message.


Properties
LogRead-write property

The name of the log file. When Type is set to mcelOS, this can be “Application”, “System”, “Security”, or a custom log name. The default is an empty string ("").

SourceRead-write property

The event Source is the name of the software that logs the event. It is often the name of the application, or the name of a subcomponent of the application. The default value is copied from IMcApplication.Name.

TypeRead-write property

The type of logging an McEventLog object performs.


Events
EntryWritten

This event is fired as soon as a diagnostics event is written to its logging destination.