Bruce> Of the two, I find the ":" more intuitive.
Dave> Yes - that's the style that Robert and I had come to an agreement on.
Robert> I remember that one of my reasons was that '/' was a path separator.
Robert> As I was reviewing this thread, I realized that ':' is the path
Robert> separator for 'classic' Mac OS (< 10.0).
But that doesn't actually matter anyway.
Avoiding path separators is purely an aesthetic issue.
These are debug tokens, not filenames - so should never
be interpreted as a path.
(Of course ':' is also significant under Windows - but again,
this isn't actually relevant).
Dave> For example, with the configure mechanism, I'd be looking at something
Dave> along the lines of:
Dave>
Dave> -Dconfig list each (existing) config file as it's read in
Dave> and the persistent file(s) that will be used
Dave> -Dconfig:files list all the config files being looked for
Dave> (both existing and missing)
Dave> -Dconfig:files:parse
Dave> list each config line as it's read in
Robert> The only think I don't like about this mechanism is that you must
Robert> know the tokens to get increased verbosity.
Robert> What do you think of allowing wildcards? eg
Robert>
Robert> -Dconfig:*
Robert> -Dconfig:*:*
Oh, I *do* like it when you agree with me! :-)
<ahem>
I would draw the honourable gentleman's attention to the answer I gave
earlier - as reported in the Hansard record for April 22nd 2004, under
the index reference <[EMAIL PROTECTED]>
That's actually subtly different, as I suggested using
-Dconfig:
and -Dconfig::
instead.
I'd proposed that
-Dconfig:*
should be used to match *all*
config-based debugging tokens, regardless of depth.
But the basic idea is much the same.
The one thing I'm not totally clear about is whether
-Dconfig::
(however it's represented) should match "higher" level debugging - i.e.
should trigger DEBUG("config") and DEBUG("config:this") as well,
or just DEBUG("config:the:other") ?
Dave
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders