Top Method Summary
Options Name Purpose
+ LOGICAL CreateEventSource (character) Creates an Event Source
# LOGICAL CreateEventSourceAsAdministrator (character) Starts a new AVM with the "Run As Administrator" flag to create an Event Source
+ LOGICAL EventSourceExists (character) Verifies if an EventSource exists
+ LOGICAL WriteMessage (character, character) Writes a Message to the EventLog
+ LOGICAL WriteMessage (character, character, EventLogEntryType) Writes a Message to the EventLog

Top Constructor Summary
Options Name Purpose
# EventLogHelper () Constructor for the EventLogHelper class


Method Detail
Top

PUBLIC LOGICAL CreateEventSource (character)

Purpose: Creates an Event Source
Notes:

Parameters:
pcEventSource CHARACTER
The name of the Event Source to create
Returns LOGICAL
Logical value indicating if the EventSource has been created
Top

PROTECTED LOGICAL CreateEventSourceAsAdministrator (character)

Purpose: Starts a new AVM with the "Run As Administrator" flag to create an
Event Source
Notes:

Parameters:
pcEventSource CHARACTER
The name of the Event Source to create
Returns LOGICAL
Logical value indicating if the EventSource has been created
Top

PUBLIC LOGICAL EventSourceExists (character)

Purpose: Verifies if an EventSource exists
Notes:

Parameters:
pcEventSource CHARACTER
The name of the Event Source
Returns LOGICAL
Logical value indicating if the EventSource exists
Top

PUBLIC LOGICAL WriteMessage (character, character)

Purpose: Writes a Message to the EventLog
Notes: Prevents from writing to Event Sources that are known to be not
available in the session

Parameters:
pcMessage CHARACTER
The message to be written to the EventLog
pcEventSource CHARACTER
The event source to be used for the message, will be created if required
Returns LOGICAL
Logical value indicating if the message has been written to the EventLog
Top

PUBLIC LOGICAL WriteMessage (character, character, EventLogEntryType)

Purpose: Writes a Message to the EventLog
Notes: Prevents from writing to Event Sources that are known to be not
available in the session

Parameters:
pcMessage CHARACTER
The message to be written to the EventLog
pcEventSource CHARACTER
The event source to be used for the message, will be created if required
poEntryType System.Diagnostics.EventLogEntryType
The System.Diagnostics.EventLogEntryType for the message
Returns LOGICAL
Logical value indicating if the message has been written to the EventLog


Constructor Detail
Top

PROTECTED EventLogHelper ()

Purpose: Constructor for the EventLogHelper class
Notes: Disallow instance creation



©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.12.2024 13:23:39