Re: gnc-trace module numbers

2005-09-29 Thread Neil Williams
On Thursday 29 September 2005 1:17 pm, Derek Atkins wrote: > > That's what I can't find - how to tell the scheme to accept a gchar > > instead of > > an int for gnc_set_log_level. gnc_set_log_level, not gnc_set_log_level_global. > Did you even look at gw-engine-spec.scm? Look for "gnc_set_log_le

Re: gnc-trace module numbers

2005-09-29 Thread Derek Atkins
Quoting Neil Williams <[EMAIL PROTECTED]>: OK, that's where I've added new versions of these calls (using strings): > 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

Re: gnc-trace module numbers

2005-09-29 Thread Neil Williams
On Tuesday 27 September 2005 2:08 pm, Derek Atkins wrote: > Neil Williams <[EMAIL PROTECTED]> writes: > > gnc_set_logfile(f); > > Not done. It uses the default The default is now no logging at all. The default target is stderr. There is a recommended call - qof_log_set_default()

Re: gnc-trace module numbers

2005-09-28 Thread Neil Williams
On Wednesday 28 September 2005 3:02 pm, Derek Atkins wrote: > Quoting Neil Williams <[EMAIL PROTECTED]>: > > On Wednesday 28 September 2005 1:50 pm, Derek Atkins wrote: > >> Perhaps qof can just use the "gnome application" name? I thought > >> gnome had some way to determine the name of the curren

Re: gnc-trace module numbers

2005-09-28 Thread Derek Atkins
Quoting Neil Williams <[EMAIL PROTECTED]>: On Wednesday 28 September 2005 1:50 pm, Derek Atkins wrote: Perhaps qof can just use the "gnome application" name? I thought gnome had some way to determine the name of the current app? Can qof use that? Good idea - I use the automake macro PACKAGE

Re: gnc-trace module numbers

2005-09-28 Thread Neil Williams
On Wednesday 28 September 2005 1:50 pm, Derek Atkins wrote: > Perhaps qof can just use the "gnome application" name? I thought > gnome had some way to determine the name of the current app? Can qof > use that? Good idea - I use the automake macro PACKAGE elsewhere. I'll do that. -- Neil Willi

Re: gnc-trace module numbers

2005-09-28 Thread Derek Atkins
Neil Williams <[EMAIL PROTECTED]> writes: > On Tuesday 27 September 2005 2:08 pm, Derek Atkins wrote: >> Neil Williams <[EMAIL PROTECTED]> writes: >> > gnc_set_logfile(f); >> >> Not done. It uses the default > > It'll need to be done with this change - the default was gnucash.trac

Re: gnc-trace module numbers

2005-09-27 Thread Neil Williams
On Tuesday 27 September 2005 2:08 pm, Derek Atkins wrote: > Neil Williams <[EMAIL PROTECTED]> writes: > > gnc_set_logfile(f); > > Not done. It uses the default It'll need to be done with this change - the default was gnucash.trace and this change is to make the trace less gnucash

Re: gnc-trace module numbers

2005-09-27 Thread Derek Atkins
Neil Williams <[EMAIL PROTECTED]> 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_lo

Re: gnc-trace module numbers

2005-09-27 Thread Neil Williams
On Tuesday 27 September 2005 3:34 am, David Hampton wrote: > > > Make gnc_log_modules (which is probably best as just a default) into a > > > setup call for a GHashTable and dump gncModuleType altogether? > > > > Sure, that'd work. Probably best to have module identifiers be strings > > rather tha

Re: gnc-trace module numbers

2005-09-26 Thread David Hampton
On Mon, 2005-09-26 at 21:34 -0400, Josh Sled wrote: > On Sun, 2005-09-25 at 18:51 +0100, Neil Williams wrote: > > I'm looking again at gnc-trace because I want to make it less GnuCash > > specific. > [deletia] > > Make gnc_log_modules (which is probably best as just a default) into a > > setup >

Re: gnc-trace module numbers

2005-09-26 Thread Josh Sled
On Sun, 2005-09-25 at 18:51 +0100, Neil Williams wrote: > I'm looking again at gnc-trace because I want to make it less GnuCash > specific. [deletia] > Make gnc_log_modules (which is probably best as just a default) into a setup > call for a GHashTable and dump gncModuleType altogether? Sure, th

gnc-trace module numbers

2005-09-25 Thread Neil Williams
I'm looking again at gnc-trace because I want to make it less GnuCash specific. I feel we need to let any QOF application create their own traces with their own list of modules and not force MOD_GUI, MOD_LOT, MOD_ACCOUNT, MOD_SX and others onto other applications. In cashutil, I've been using