MYLog.h 743 B

123456789101112131415161718192021
  1. //
  2. // MYLog.h
  3. // FineGrainedLogging
  4. //
  5. // CocoaLumberjack Demos
  6. //
  7. #import <CocoaLumberjack/CocoaLumberjack.h>
  8. // The first 4 bits are being used by the standard levels (0 - 3)
  9. // All other bits are fair game for us to use.
  10. #define LOG_FLAG_FOOD_TIMER (1 << 5) // 0...0100000
  11. #define LOG_FLAG_SLEEP_TIMER (1 << 6) // 0...1000000
  12. #define DDLogFoodTimer(frmt, ...) LOG_MAYBE(YES, ddLogLevel, LOG_FLAG_FOOD_TIMER, 0, nil, __PRETTY_FUNCTION__, frmt, ##__VA_ARGS__)
  13. #define DDLogSleepTimer(frmt, ...) LOG_MAYBE(YES, ddLogLevel, LOG_FLAG_SLEEP_TIMER, 0, nil, __PRETTY_FUNCTION__, frmt, ##__VA_ARGS__)
  14. // Now we decide which flags we want to enable in our application
  15. #define LOG_FLAG_TIMERS (LOG_FLAG_FOOD_TIMER | LOG_FLAG_SLEEP_TIMER)