Index

Package: Helpers

Description

package Alog.Helpers is
Alog helper functions/procedures.

Constants & Global variables

Invalid_Config

Invalid_Config : exception;
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;
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);
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.