TCustomApplication.Log procedure
Write a message to the event log.
Declaration
procedure Log(EventType: TEventType; const Msg: string)
procedure Log(EventType: TEventType; const Fmt: string;
const Args: Array of const)Arguments
EventType | Type of event. |
Msg | Message to log. |
Fmt | Format string. |
Args | Formatting arguments. |
Description
Log is meant for all applications to have a default logging
mechanism. By default it does not do anything, descendent classes should
override this method to provide appropriate logging: they should write the
message
Msg with type
EventType to some log mechanism
such as
TEventLog
The second form using Fmt and Args will format the
message using the provided arguments prior to logging it.
Errors
None.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
