gnc-trace module numbers

Derek Atkins warlord at MIT.EDU
Tue Sep 27 09:08:08 EDT 2005

Neil Williams <linux at> writes:

>                 gnc_set_logfile(f);

Not done.  It uses the default

>                 gnc_log_init();

This is in gnc-engine.c and self-tested in gnc-trace.c

>                 gnc_set_log_level(MOD_BACKEND, GNC_LOG_DETAIL);
>                 gnc_set_log_level(MOD_ENGINE, GNC_LOG_DETAIL);
>                 gnc_set_log_level(MOD_IO, GNC_LOG_DETAIL);

These are done in the enum-structure in gnc-trace.c and by the
command-line through scheme.

> I know it's not defined static like that and that gnucash can use command line 
> options to specify the modules and log detail, I'm hoping it's not in the 
> Scheme!

Why?  Changing the scheme is /EASY/ You just need to change the
definitions in gw-engine-spec.scm and every other usage will just use
the new definitions.  But yes, I think the dynamic definitions on
the command-line are done from scheme.

       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL:    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available

More information about the gnucash-devel mailing list