logging overhaul (please read)

Josh Sled jsled at asynchronous.org
Sun Feb 11 10:16:27 EST 2007


On Fri, 2007-02-09 at 22:51 +0100, Christian Stimming wrote:
> Am Freitag, 9. Februar 2007 18:38 schrieb Josh Sled:
> > The option "--loglevel" is presently disabled; is it used enough to
> > bring back, or can people just say <--log ""=whatever>?
> 
> I'd suggest to have *one* option that can be used by the average Joe Linux 
> user which will increase logging to a useful value (maybe INFO). I don't know 
> whether --debug is used currently - that one would be a useful candidate.

That's a good way to look at it.

The --debug flag presently has two effects:

- enable the Extensions menu
- allow (gnc:debug ...) logging.

It seems right to have two options: one for enabling the Extensions
menu, and one for getting log detail.  I like --debug for the latter,
and some new flag for the former.  As there's a small set of people devs
who need to be "retrained" for an extension menu option, that seems
better than the other way around, and "--debug" is a promising candidate
to the eyes of Joe Linux when scanning --help...

So, maybe:
--extend?  meh.
--enable-extensions?  too long.
--extra?  Hmm...

I'll probably go with --extra in the absence of a better suggestion.


(I note, as well, that the scheme logging should probably call wrapped
g_«log»... calls, rather than just (write ) the lines out.  Oooh,
that'll be a good way to figure out how to swig-ify some api... :)

-- 
...jsled
http://asynchronous.org/ - a=jsled;b=asynchronous.org;echo ${a}@${b}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.gnucash.org/pipermail/gnucash-devel/attachments/20070211/f52b8268/attachment.bin 


More information about the gnucash-devel mailing list