Namespace: Consultingwerk.Util
Class 
EventLogHelper Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:EventLogHelper
Purpose:Provides support for writing to the Windows Appliation Event Log
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Sun Apr 22 12:19:54 CEST 2012
Notes:This class is intended for GUI for .NET use only



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       15.04.2024 06:16:35