Class TBrookLogger
Unit
BrookLogger
Declaration
type TBrookLogger = class(TBrookComponent)
Description
Provides features for the application logging.
Hierarchy
Overview
Methods
Properties
Description
Methods
|
function GetActive: Boolean; virtual; |
|
|
procedure SetActive(const AValue: Boolean); virtual; |
|
|
function GetFileName: TFileName; virtual; |
|
|
procedure SetFileName(const AValue: TFileName); virtual; |
|
|
constructor Create(AOwner: TComponent); override; |
|
|
class function GetServiceClass: TBrookLoggerClass; |
Return the service class provided by this class.
|
|
class procedure RegisterService; |
Registers the service provided by this class.
|
|
class procedure UnregisterService; |
Unregisters the service provided by this class.
|
|
class function Service: TBrookLogger; |
Return an instance of this class.
|
|
procedure Prepare; virtual; |
Prepare the logger broker.
|
|
procedure Unprepare; virtual; |
Unprepare the logger broker.
|
|
procedure Log(const AType: TBrookLogType; const S: string; const ACode: Word; const E: Exception = nil); virtual; abstract; |
Writes a log.
|
|
procedure DoLog(const AType: TBrookLogType; const S: string; const ACode: Word; const E: Exception = nil); virtual; |
Writes a log triggering the AfterLog and (BeforeLog) events.
|
|
procedure Custom(const S: string; const ACode: Word); virtual; |
Writes a custom log.
|
|
procedure Info(const S: string); virtual; |
Writes an information log.
|
|
procedure Warn(const S: string); virtual; |
Writes a warning log.
|
|
procedure Debug(const S: string); virtual; |
Writes a debug log.
|
|
procedure Error(const S: string; E: Exception = nil); virtual; |
Writes an error log.
|
Properties
|
property Types: TBrookLogTypes read FTypes write FTypes; |
The logger output types.
|
|
property Prepared: Boolean read FPrepared; |
Return True if broker is prepared.
|
|
property AfterLog: TBrookLogEvent read FAfterLog write FAfterLog; |
Is triggered after the logger writes a log.
|
|
property BeforeLog: TBrookLogEvent read FBeforeLog write FBeforeLog; |
Is triggered before the logger writes a log.
|
Generated by PasDoc 0.15.0.
|