LoggerPro (1.0)

A simple, pluggable and modern logging framework for Delphi

Class TLogItem

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TLogItem = class sealed(TObject)

Description

Represent the single log item

Each call to some kind of log method is wrapped in a TLogItem instance and passed down the layour of LoggerPro.

Hierarchy

  • TObject
  • TLogItem

Overview

Methods

Public constructor Create(aType: TLogType; aMessage: string; aTag: string); overload;
Public constructor Create(aType: TLogType; aMessage: string; aTag: string; aTimeStamp: TDateTime; aThreadID: Cardinal); overload;
Public function Clone: TLogItem;

Properties

Public property LogType: TLogType read FType;
Public property LogMessage: string read FMessage;
Public property LogTag: string read FTag;
Public property TimeStamp: TDateTime read FTimeStamp;
Public property ThreadID: Cardinal read FThreadID;
Public property LogTypeAsString: string read GetLogTypeAsString;

Description

Methods

Public constructor Create(aType: TLogType; aMessage: string; aTag: string); overload;
 
Public constructor Create(aType: TLogType; aMessage: string; aTag: string; aTimeStamp: TDateTime; aThreadID: Cardinal); overload;
 
Public function Clone: TLogItem;
 

Properties

Public property LogType: TLogType read FType;

The type of the log

Log can be one of the following types:

  • DEBUG

  • INFO

  • WARNING

  • ERROR

Public property LogMessage: string read FMessage;

The text of the log message

Public property LogTag: string read FTag;

The tag of the log message

Public property TimeStamp: TDateTime read FTimeStamp;

The timestamp when the TLogItem is generated

Public property ThreadID: Cardinal read FThreadID;

The IDof the thread which generated the log item

Public property LogTypeAsString: string read GetLogTypeAsString;

The type of the log converted in string

Copyright 2016 Daniele Teti
Generated by PasDoc 0.14.0.