logga/README.adoc

688 B

<html lang="en"> <head> </head>

Logga

Logga is a simple, small, and fast logging library for Ada 2012. Unlike Alog, which is very powerful and configurable, Logga aims for the most minimal runtime footprint possible.

Using

Logga is very simple to use, but has a number of helpful functions which will help write faster logging code in Ada.

with Logga;

procedure Main is
   Log : constant Logga.Log_Type := (Level  => Logga.Info,
                                     Colors => True);
begin
   Log.Info ("Hello World!");
   Log.Debug ("This is a {1} message, with a magic number: {2}",
              (Log.d ("tokenized"), Log.d (42)));
end Main;
</html>