Thats great David, my question is fully answered :-)
Thanks
Geoff
--- In
iglance@yahoogroups.com, "David Barrett" <dbarrett@...> wrote:
>
> The logging functionality uses a "channel" design, so you can enable and
> disable feature-specific logging at runtime. The macros of interest
are:
>
> GINFOC( ) - Log to a specific channel, eg:
> GINFOC( 'v', "Video blah blah" );
>
> GINFO( ) - Log to the channel set in GINFOCHANNEL (at the top of the
file)
> #undef GINFOCHANNEL
> #define GINFOCHANNEL 'v'
> ...
> GINFO( "Video blah blah" );
>
> GWARN( ) - Log a warning; not tied to any channel (always logged)
>
> As for the functions, the only one that really matters is:
>
> GLogFilterSet( ) - Changes which channels are enabled, eg:
> GLogFilterSet( "vrV" );
>
> There are 52 channels: each uppercase and lowercase letter is its own
> channel. Furthermore, enabling the channel 'x' enables all lower-cased
> channels, and 'X' enables all uppercase.
>
> Does this answer your question?
>
> -david
>
> > -----Original Message-----
> > From:
iglance@yahoogroups.com [mailto:
iglance@yahoogroups.com] On
Behalf
> > Of Geoff Smith
> > Sent: Saturday, December 09, 2006 8:47 PM
> > To:
iglance@yahoogroups.com
> > Subject: [iglance] Debug logging
> >
> > I want to be able to debug the source code. Can you point me towards
> > docs on how to use the logging in the code
> >
> >
> > Found these functions, but I am unclear on how to use them, or the
> > GINFO or GWARN macros.
> >
> > LIBPIG_API string GLogFilterGet( );
> > LIBPIG_API void GLogFilterSet( const string& enable );
> > LIBPIG_API bool GLogFilterTest( char c );
> >
> >
> > Thanks
> >
> > Geoff
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
>