Index

Package: File_Descriptor

Description

package Alog.Facilities.File_Descriptor is
File_Descriptor facility. Used to log to a console or file. If no file is specified by a Set_Logfile()-call, console logging is used.

Classes

Instance

type Instance is new Alog.Facilities.Instance with private;

Ancestors:

Primitive operations:

Alog.Facilities.Setup (Inherited)
Close_Logfile
Write (overriding Alog.Facilities.Write)
File Descriptor based logging facility.

Types

Handle

type Handle is access all Instance;

Constants & Global variables

Open_File_Error

Open_File_Error : exception;
This exception is raised if an error occurs while trying to open a logfile.

Subprograms & Entries

Teardown

procedure Teardown 
(Facility: in out Instance);
Implementation of Teardown-procedure.

Set_Logfile

procedure Set_Logfile 
(Facility: in out Instance;
Path: String;
Append: Boolean := True);
Set logfile to use. If not set, standard output is used for logging. Set Append to False if an existing logfile should be overwritten.

Get_Logfile

function Get_Logfile 
(Facility: Instance) return Ada.Text_IO.File_Access;
Get currently used logfile.

Close_Logfile

procedure Close_Logfile 
(Facility: in out Instance;
Remove: Boolean := False);
Close opened logfile.