Error on FineGrainedLogging wiki page?

20 views
Skip to first unread message

Jim Roepcke

unread,
Nov 12, 2012, 7:32:38 PM11/12/12
to cocoalu...@googlegroups.com
On the FineGrainedLogging wiki page:

https://github.com/robbiehanson/CocoaLumberjack/wiki/FineGrainedLogging
#define LOG_FOOD_TIMER  (ddLogLevel & LOG_FLAG_FOOD_TIMER)
#define LOG_SLEEP_TIMER (ddLogLevel & LOG_FLAG_SLEEP_TIMER)
LOG_FOOD_TIMER and LOG_SLEEP_TIMER are not referenced anywhere else on that page. Are they needed? If so, how would they be used?

Thanks for your help,

Jim

Robbie Hanson

unread,
Nov 25, 2012, 10:45:06 PM11/25/12
to cocoalu...@googlegroups.com
Something like this:

if (LOG_FOOD_TIMER) {
    // multi-line debugging stuff
}

For example, if you wanted to loop over an array, and print stuff.

-- 
Robbie Hanson
Sent with Sparrow

--
You received this message because you are subscribed to the Google Groups "CocoaLumberjack" group.
To post to this group, send email to cocoalu...@googlegroups.com.
To unsubscribe from this group, send email to cocoalumberja...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/cocoalumberjack/-/017RSrT9ungJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages