dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #04925
New log system: instructions
The "new" log system is now in place. We now have the following
functions in namespace dolfin:
message();
warning();
error();
begin();
end();
In addition, we have the two macros dolfin_debug() and dolfin_assert()
which are the same as before.
The log system also provides the classes Progress and Event which are
the same as before.
To control the debug level, use
set("debug level", n);
where n is the desired debug level. Only messages with debug level
higher than or equal to the current debug level will be printed.
To control the output destination, use
set("output destination", destination);
where destination is one of "terminal" (default) or "silent". Setting
the output destination to "silent" means no messages will be printed.
All messages from DOLFIN are now printed at the same debug level (0),
but we should try to differentiate so that only the most relevant
information (whatever that may be, but we'll find out) is printed at
level 0. Things like "Using PETSc GMRES solver with bla bla
preconditioner" should be at level 1 or higher.
/Anders
Follow ups