Class TLogger

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TLogger = class(TReferenceCounted)

Description

Interface for logging messages, warnings and errors.

Hierarchy

Overview

Methods

Public procedure Log(const Text, Hint: StringType; Level: TLogLevel = llInformation); overload; inline;
Public procedure Log(const Text: StringType; Level: TLogLevel = llInformation); overload; inline;

Properties

Public property LogLevel: TLogLevel read GetLogLevel write SetLogLevel;

Description

Methods

Public procedure Log(const Text, Hint: StringType; Level: TLogLevel = llInformation); overload; inline;

Prints out a text into the log.

Parameters
Text
Text to print out.
Hint
Additional info. This string is added after a " :" to the string.
Level
Log level of the text. If the text is an error, set it to llError, if it is warning set it to llWarning, and if it is just an informational text, set it to llInformation. Texts are filtered with these levels. If you want to be a text displayed, independent on what level filter is set, use llNone.
Public procedure Log(const Text: StringType; Level: TLogLevel = llInformation); overload; inline;

Prints out a text into the log.

Parameters
Text
Text to print out.
Level
Log level of the text. If the text is an error, set it to llError, if it is warning set it to llWarning, and if it is just an informational text, set it to llInformation. Texts are filtered with these levels. If you want to be a text displayed, independent on what level filter is set, use llNone.

Properties

Public property LogLevel: TLogLevel read GetLogLevel write SetLogLevel;

The current set log level.


Generated by PasDoc 0.12.1 on 2012-09-14 17:32:22