Class TAdLog

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAdLog = class(TObject)

Description

The log system class

Hierarchy

Overview

Methods

Public constructor Create;
Public destructor Destroy; override;
Public procedure LoadFromFile(AFile:string);
Public procedure SaveToFile(AFile:string);
Public procedure AddMessage(AMessage:TAdLogMessage); virtual;

Properties

Public property Items: TStringList read FItems;
Public property AutoSave: boolean read FAutoSave write FAutoSave;
Public property FileName: string read FFileName write FFileName;

Description

Methods

Public constructor Create;

Creates an instance of TAdLog.

Public destructor Destroy; override;

Destroys the instance of TAdLog.

Public procedure LoadFromFile(AFile:string);

Loads the log file from a file.

Public procedure SaveToFile(AFile:string);

Stores the log file in a file.

Public procedure AddMessage(AMessage:TAdLogMessage); virtual;

Adds a new message to the log file.

See also
TAdLogMessage
A record type containing information about a log entry in the log system.

Properties

Public property Items: TStringList read FItems;

Allows access on the string list managed by TAdLog.

Public property AutoSave: boolean read FAutoSave write FAutoSave;

When true, all changes on the log file are automatically saved.

Public property FileName: string read FFileName write FFileName;

The file the log should be saved to.

SourceForge.net Logo


Generated by PasDoc 0.11.0 on 2008-12-31 14:31:59