[Overview][Resource strings][Types][Classes][Index] Reference for unit 'eventlog' (#fcl)

TEventLog

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Event logging class

Declaration

Source position: eventlog.pp line 30

type TEventLog = class(TComponent)

protected

  procedure CheckInactive;

  procedure EnsureActive;

  function MapTypeToEvent();

  function MapTypeToCategory();

  function MapTypeToEventID();

public

  destructor Destroy; override;

  

Clean up TEventLog instance

  function EventTypeToString();

  

Create a string representation of an event type

  function RegisterMessageFile(); virtual;

  

Register message file

  function UnRegisterMessageFile; virtual;

  

Unregister the message file (needed on windows only)

  procedure Pause;

  procedure Resume;

  procedure Log();

  

Log a message to the system log.

  procedure Warning();

  

Log a warning message.

  procedure Error();

  

Log an error message to

  procedure Debug();

  

Log a debug message

  procedure Info();

  

Log an informational message

published

  AppendContent: Boolean;

  

Control whether output is appended to an existing file

  Identification: ;

  

Identification string for messages

  LogType: TLogType;

  

Log type

  Active: Boolean;

  

Activate the log mechanism

  RaiseExceptionOnError: Boolean;

  

Determines whether logging errors are reported or ignored

  DefaultEventType: TEventType;

  

Default event type for the Log call.

  FileName: ;

  

File name for log file

  TimeStampFormat: ;

  

Format for the timestamp string

  CustomLogType: Word;

  

Custom log type ID

  EventIDOffset: DWord;

  

Offset for event ID messages identifiers

  OnGetCustomCategory: TLogCategoryEvent;

  

Event to retrieve custom message category

  OnGetCustomEventID: TLogCodeEvent;

  

Event to retrieve custom event ID

  OnGetCustomEvent: TLogCodeEvent;

  

Event to retrieve custom event Code

  Paused: Boolean;

end;

Inheritance

TEventLog

  

Event logging class

|

TComponent,IUnknown,IInterfaceComponentReference

|

TPersistent,IFPObserved

|

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

Log

  

Log a message to the system log.

Warning

  

Log a warning message.

Error

  

Log an error message to

Info

  

Log an informational message

Debug

  

Log a debug message

This page is hosted on Get Lazarus Code and Component Repository at SourceForge.net. Fast, secure and Free Open Source software downloads