CocoaLumberjack #673

Closed
mrchristopher124 opened this Issue Feb 13, 2014 · 3 comments

Projects

None yet

3 participants

@mrchristopher124

So with the latest version of MagicalRecord my build is now broken because MagicalRecord now sets ddLogLevel as does my app. Thoughts? This makes me sad. :(

#if MR_ENABLE_ACTIVE_RECORD_LOGGING != 0
// First, check if we can use Cocoalumberjack for logging
#ifdef LOG_VERBOSE
extern int ddLogLevel;
#define MRLog(...) DDLogVerbose(VA_ARGS)
#else
#define MRLog(...) NSLog(@"%s(%p) %@", PRETTY_FUNCTION, self, [NSString stringWithFormat:VA_ARGS])
#endif
#else
#define MRLog(...) ((void)0)
#endif

I was able to build once I commented out this line:

extern int ddLogLevel;

@casademora
Magical Panda Software member
@mrchristopher124

OK cool. That's what I did. Thanks.

@tonyarnold

This should be fixed in develop — I've back ported @casademora's work from MagicalRecord 3. You can now use the + [MagicalRecord setLogLevel:…] method to set the desired logging level while your application is running.

@tonyarnold tonyarnold closed this Apr 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment