Class TBrookLogger
Unit
Declaration
type TBrookLogger = class(TComponent)
Description
Component that writes log to a predefined output type.
Hierarchy
- TObject
- TPersistent
- TComponent
- TBrookLogger
Overview
Methods
constructor Create(AOwner: TComponent); override; |
|
destructor Destroy; override; |
|
function GetOutputClass: TBrookLoggerOutputClass; inline; |
|
procedure Open; |
|
procedure Close; |
|
procedure Log(const ALevel, AMessage: string); inline; |
|
procedure Fail(const ALevel: string; AException: Exception); inline; |
|
procedure Info(const AMessage: string); inline; |
|
procedure Hint(const AMessage: string); inline; |
|
procedure Warn(const AMessage: string); inline; |
|
procedure Debug(const AMessage: string); inline; |
|
procedure Error(AException: Exception); inline; |
Properties
property Output: TBrookLoggerOutput read GetOutput; |
|
property Active: Boolean read FActive write SetActive stored IsActiveStored; |
|
property Levels: TBrookLoggerLevels read FLevels write FLevels; |
|
property OutputName: string read FOutputName write SetOutputName
stored IsOutputNameStored; |
|
property Filters: TStringList read FFilters write SetFilters; |
|
property Options: TStringList read FOptions write SetOptions; |
Description
Methods
constructor Create(AOwner: TComponent); override; |
|
Creates an instance of Parameters
|
destructor Destroy; override; |
|
Destroys an instance of |
function GetOutputClass: TBrookLoggerOutputClass; inline; |
|
procedure Open; |
|
Enabled the logger component. |
procedure Close; |
|
Disables the logger component. |
procedure Log(const ALevel, AMessage: string); inline; |
|
Appends a message to the output Parameters
|
procedure Fail(const ALevel: string; AException: Exception); inline; |
|
Appends an exception message to the output log. Parameters |
procedure Info(const AMessage: string); inline; |
|
Appends a message to the output log as information level. Parameters
|
procedure Hint(const AMessage: string); inline; |
|
Appends a message to the output log as Parameters
|
procedure Warn(const AMessage: string); inline; |
|
Appends a message to the output log as warning level. Parameters
|
procedure Debug(const AMessage: string); inline; |
|
Appends a message to the output log as Parameters
|
procedure Error(AException: Exception); inline; |
|
Appends a message to the output log as Parameters
|
Properties
property Output: TBrookLoggerOutput read GetOutput; |
|
property Active: Boolean read FActive write SetActive stored IsActiveStored; |
|
Activates the logger component. |
property Levels: TBrookLoggerLevels read FLevels write FLevels; |
|
Retains the log |
property OutputName: string read FOutputName write SetOutputName
stored IsOutputNameStored; |
|
Name of the chosen output type. |
property Filters: TStringList read FFilters write SetFilters; |
|
property Options: TStringList read FOptions write SetOptions; |
|
List containing additional |
Generated by PasDoc 0.16.0.