Index

Package: Alog.Helpers

Description

package Alog.Helpers is
Alog helper functions/procedures.

Constants & Global variables

Invalid_Config

Invalid_Config : exception;

References:

alog-helpers.ads:57:4 (declaration)
alog-helpers.adb:114:28 (reference)
alog-helpers.adb:137:34 (reference)
Exception is raised if a loglevel config file is invalid.

Subprograms & Entries

Assert_Files_Equal

function Assert_Files_Equal     
(Filename1: String;
Filename2: String)
return Boolean;

References:

alog-helpers.ads:31:13 (declaration)
alog-helpers.adb:31:13 (body)
alog-helpers.adb:73:8 (label)

Calls:

Close defined at a-direio.ads:86:14
End_Of_File defined at a-direio.ads:124:13
Open defined at a-direio.ads:80:14
Read defined at a-direio.ads:106:14
Size defined at a-direio.ads:122:13
Compare two files byte-wise. Returns True if both files are equal. The two files are closed but not removed after comparison.

Read_Loglevels

procedure Read_Loglevels     
(Filename: String;
Default_Level: in out Log_Level;
Identifiers: out Maps.Wildcard_Level_Map);

References:

alog-helpers.ads:38:14 (declaration)
alog-helpers.adb:77:14 (body)
alog-helpers.adb:156:8 (label)

Calls:

Alog.Maps.Insert defined at alog-maps.ads:75:14
Close defined at a-textio.ads:98:14
End_Of_File defined at a-textio.ads:183:13
Get_Line defined at a-textio.ads:244:14
Index defined at a-strfix.ads:36:13
Open defined at a-textio.ads:92:14
Trim defined at a-strfix.ads:186:13
Read default loglevels and (optional) identifier based loglevels from file given by filename. The format is as follows: # This is a comment (ignored) # Default loglevel Default = Info # Identifier-specific loglevels Foo.* = Debug Foo.Bar = Info If no default loglevel setting is found in the file, the loglevel passed as Default_Level parameter is returned unchanged.