Class TBrookLoggerOutputFile

Unit

Declaration

type TBrookLoggerOutputFile = class(TBrookLoggerOutput)

Description

Class for file logger output.

Hierarchy

Overview

Methods

Public procedure AfterConstruction; override;
Public destructor Destroy; override;
Public class function GetName: string; override;
Public procedure Log(const ALevel, AMessage: string); override;
Public procedure Fail(const ALevel: string; AException: Exception); override;

Properties

Public property Directory: string read FDirectory write SetDirectory;
Public property FileName: TFileName read FFileName;

Description

Methods

Public procedure AfterConstruction; override;

Method triggered after the constructor is called.

Public destructor Destroy; override;

Destroys an instance of TBrookLoggerOutputFile.

Public class function GetName: string; override;

Returns the name for output source.

Returns

Output source name.

Public procedure Log(const ALevel, AMessage: string); override;

Appends a message to the output log.

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

Appends an exception message to the output log.

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

Properties

Public property Directory: string read FDirectory write SetDirectory;

Specifies the output directory containing the logs.

Public property FileName: TFileName read FFileName;

Generated absolute filename for the log.


Generated by PasDoc 0.16.0.