TEventLog class
Event logging class.
Declaration
TEventLog = class(TComponent)Inheritance
- TEventLog
- TComponent
- TPersistent
- 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
AppendContent | published | Control whether output is appended to an existing file. |
Identification | published | Identification string for messages. |
EventFilter | published | |
LogType | published | Log type. |
Active | published | Activate the log mechanism. |
RaiseExceptionOnError | published | Determines whether logging errors are reported or ignored. |
DefaultEventType | published | Default event type for the Log call. |
FileName | published | File name for log file. |
TimeStampFormat | published | Format for the timestamp string. |
CustomLogType | published | Custom log type ID. |
EventIDOffset | published | Offset for event ID messages identifiers. |
Paused | published | Is the message sending paused ? |
Methods
CheckInactive | protected | |
EnsureActive | protected | |
MapTypeToEvent | protected | |
MapTypeToCategory | protected | |
MapTypeToEventID | protected | |
Create | public | Creates a new instance of the component. |
Destroy | public | Clean up TEventLog instance. |
EventTypeToString | public | Create a string representation of an event type. |
RegisterMessageFile | public | Register message file. |
UnRegisterMessageFile | public | Unregister the message file (needed on windows only). |
Pause | public | Pause the sending of log messages. |
Resume | public | Resume sending of log messages if sending was paused. |
Log | public | Log a message to the system log. |
Warning | public | Log a warning message. |
Error | public | Log an error message to. |
Debug | public | Log a debug message. |
Info | public | Log an informational message. |
Events
OnGetCustomCategory | published | Event to retrieve custom message category. |
OnGetCustomEventID | published | Event to retrieve custom event ID. |
OnGetCustomEvent | published | Event to retrieve custom event Code. |
OnLogMessage | published | Implement 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.
