Re: Logging entry/exit into methods &/|| functions
Re: Logging entry/exit into methods &/|| functions
- Subject: Re: Logging entry/exit into methods &/|| functions
- From: Andy Lee <email@hidden>
- Date: Sun, 31 Aug 2003 15:09:15 -0400
At 2:36 PM -0400 8/31/03, Andy Lee wrote:
#define LogEnteringMethod() { if (GetVerbosityLevel() >=
VERBOSITY_DEBUG) LogDebug(@"%@ -- entering %@", [self class],
NSStringFromSelector(_cmd)); }
#define LogExitingMethod() { if (GetVerbosityLevel() >=
VERBOSITY_DEBUG) LogDebug(@"%@ -- exiting %@", [self class],
NSStringFromSelector(_cmd)); }
Sorry, I forgot to mention: GetVerbosityLevel() and LogDebug() are
functions I wrote. The latter is a simple wrapper around NSLog().
--Andy
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.