← Back to team overview

dolfin team mailing list archive

Re: New log system: instructions

 

On Mon, May 14, 2007 at 07:51:31PM +0200, Anders Logg wrote:
> 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.

I mean the opposite here...

/Anders


> 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
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/dolfin-dev


References