CAST II Game Engine

   MAIN       FEATURES       SCREENSHOTS       FORUMS       MANUAL       DOWNLOADS       CONTACTS   
Units
Class Hierarchy
Classes, Interfaces and Objects
Types
Enumerations
Variables
Constants
Functions and Procedures
Identifiers

Class TLogSession

Unit

TextFile

Declaration

type TLogSession = class

Description

Logger class

Fields

 NameDescription
ProtectedStartedMsStartup timestamp in milliseconds
ProtectedTimeFormatDetermines which date or time to include in the log

Methods

Overview

Publicconstructor Init(const FileName: string; ATimeFormat: TLogTimeFormat; ALevels: TLogLevels); virtual;
Publicdestructor Shutdown; virtual;
Protectedprocedure AppendLog(const Desc: string; Level: TLogLevel = lkInfo); virtual;
Publicprocedure Log(const Desc: string; Level: TLogLevel = lkInfo);

Description

Publicconstructor Init(const FileName: string; ATimeFormat: TLogTimeFormat; ALevels: TLogLevels); virtual;

Initializes a log session with the specified log file name, time and level settings

Publicdestructor Shutdown; virtual;

Destructor

Protectedprocedure AppendLog(const Desc: string; Level: TLogLevel = lkInfo); virtual;

Appends a string to log. Thread-safe if MULTITHREADLOG defined

Publicprocedure Log(const Desc: string; Level: TLogLevel = lkInfo);

Logs a string Desc if Level matches current logging level (see LogLevels)

Properties

Overview

Publicproperty LogLevels: TLogLevels;

Description

Publicproperty LogLevels: TLogLevels;

Set of levels which to include in the log

Last modified: 26 Oct, 2008
Copyright (C) 2006-2008, casteng.com