Search the web
Sign In
New User? Sign Up
iglance
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Debug logging   Message List  
Reply | Forward Message #117 of 133 |
RE: [iglance] Debug logging

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
>
>
>




Sun Dec 10, 2006 6:14 am

quinthar
Offline Offline
Send Email Send Email

Forward
Message #117 of 133 |
Expand Messages Author Sort by Date

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...
Geoff Smith
stipend2k
Offline Send Email
Dec 10, 2006
6:04 am

The logging functionality uses a "channel" design, so you can enable and disable feature-specific logging at runtime. The macros of interest are: GINFOC( ) -...
David Barrett
quinthar
Offline Send Email
Dec 10, 2006
6:14 am

Thats great David, my question is fully answered :-) Thanks Geoff ... file) ... Behalf...
Geoff Smith
stipend2k
Offline Send Email
Dec 11, 2006
4:47 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help