Sign in Join
FPDoc Onlineexperiment

TEventLog class

In unit EventLog

Event logging class.

Declaration

pascal
TEventLog = class(TComponent)

Inheritance

  1. TEventLog
  2. TComponent
  3. TPersistent
  4. TObject

Description

TEventLog is a component which can be used to send messages to the system log. In case no system log exists (such as on Windows 95/98 or DOS), the messages are written to a file. Messages can be logged using the general Log call, or the specialized Warning, Error, Info or Debug calls, which have the event type predefined.

See also

Properties

AppendContentpublishedControl whether output is appended to an existing file.
IdentificationpublishedIdentification string for messages.
EventFilterpublished
LogTypepublishedLog type.
ActivepublishedActivate the log mechanism.
RaiseExceptionOnErrorpublishedDetermines whether logging errors are reported or ignored.
DefaultEventTypepublishedDefault event type for the Log call.
FileNamepublishedFile name for log file.
TimeStampFormatpublishedFormat for the timestamp string.
CustomLogTypepublishedCustom log type ID.
EventIDOffsetpublishedOffset for event ID messages identifiers.
PausedpublishedIs the message sending paused ?

Methods

CheckInactiveprotected
EnsureActiveprotected
MapTypeToEventprotected
MapTypeToCategoryprotected
MapTypeToEventIDprotected
CreatepublicCreates a new instance of the component.
DestroypublicClean up TEventLog instance.
EventTypeToStringpublicCreate a string representation of an event type.
RegisterMessageFilepublicRegister message file.
UnRegisterMessageFilepublicUnregister the message file (needed on windows only).
PausepublicPause the sending of log messages.
ResumepublicResume sending of log messages if sending was paused.
LogpublicLog a message to the system log.
WarningpublicLog a warning message.
ErrorpublicLog an error message to.
DebugpublicLog a debug message.
InfopublicLog an informational message.

Events

OnGetCustomCategorypublishedEvent to retrieve custom message category.
OnGetCustomEventIDpublishedEvent to retrieve custom event ID.
OnGetCustomEventpublishedEvent to retrieve custom event Code.
OnLogMessagepublishedImplement custom handling of log messages.

Inherited

From TComponent (74)

_AddRef _Release BeforeDestruction CanObserve ChangeName ComObject ComponentCount ComponentIndex Components ComponentState ComponentStyle DefineProperties DesignInfo DestroyComponents Destroying ExecuteAction FindComponent FreeNotification FreeOnRelease GetChildOwner GetChildParent GetChildren GetDeltaStreams GetEnumerator GetIDsOfNames GetNamePath GetObservers GetOwner GetParentComponent GetTypeInfo GetTypeInfoCount HasParent iicrGetComponent InsertComponent Invoke IsImplementorOf Loaded Loading Name Notification ObserverAdded Observers OnGetDeltaStreams Owner PaletteCreated QueryInterface ReadDeltaState ReadDeltaStream ReadState ReferenceInterface RemoveComponent RemoveFreeNotification RemoveFreeNotifications SafeCallException SetAncestor SetChildOrder SetDesigning SetDesignInstance SetInline SetName SetParentComponent SetSubComponent Tag ToString TToStringNameMode UpdateAction Updated UpdateRegistry Updating ValidateContainer ValidateInsert ValidateRename VCLComObject WriteState

From TPersistent (5)

Assign AssignTo FPOAttachObserver FPODetachObserver FPONotifyObservers

From TObject (37)

AfterConstruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName StringMessageTable SystemHasExtendedRTTI UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.