Class TBrookLoggerOutput

Unit

Declaration

type TBrookLoggerOutput = class abstract(TPersistent)

Description

Abstract class for logger output.

Hierarchy

Overview

Methods

Public constructor Create(AFilters, AOptions: TStringList); virtual;
Public class function GetRegisterAlias: string; virtual;
Public class function GetName: string; virtual; abstract;
Public function IsFiltered(const ALevel: string): Boolean; virtual;
Public procedure Log(const ALevel, AMessage: string); virtual; abstract;
Public procedure Fail(const ALevel: string; AException: Exception); virtual; abstract;

Properties

Public property Filters: TStringList read FFilters;
Public property Options: TStringList read FOptions;

Description

Methods

Public constructor Create(AFilters, AOptions: TStringList); virtual;

Creates an instance of TBrookLoggerOutput.

Parameters
AFilters[in]
Filters to be assigned to the logger instance.
AOptions[in]
Options to be assigned to the logger instance.
Public class function GetRegisterAlias: string; virtual;

Returns the alias name for output source.

Returns

Output source alias.

Public class function GetName: string; virtual; abstract;

Returns the name for output source.

Returns

Output source name.

Public function IsFiltered(const ALevel: string): Boolean; virtual;

Returns True if a certain log level is filtered.

Parameters
ALevel[in]
Log level.
Public procedure Log(const ALevel, AMessage: string); virtual; abstract;

Appends a message to the output log.

Parameters
ALevel[in]
Log level.
AMessage[in]
Log message.
Public procedure Fail(const ALevel: string; AException: Exception); virtual; abstract;

Appends an exception message to the output log.

Parameters
ALevel[in]
Log level.
AException[in]
Log exception.

Properties

Public property Filters: TStringList read FFilters;

List containing the filtered log levels.

Public property Options: TStringList read FOptions;

List containing additional options to the output.


Generated by PasDoc 0.16.0.