Skip to content

Commit

Permalink
Revert "Fix CocoaLumberjack#478 by reverting CocoaLumberjack#473. The…
Browse files Browse the repository at this point in the history
… #ifdef ddLogLevel was a bad idea and it created more issues than solved."

This reverts commit 932a65e.
  • Loading branch information
ospr committed Mar 9, 2016
1 parent 8c8d155 commit ed9c3c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Classes/DDLogMacros.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
* The constant/variable/method responsible for controlling the current log level.
**/
#ifndef LOG_LEVEL_DEF
#define LOG_LEVEL_DEF ddLogLevel
#ifdef ddLogLevel
#define LOG_LEVEL_DEF ddLogLevel
#else
#define LOG_LEVEL_DEF DDLogLevelVerbose
#endif
#endif

/**
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ github "CocoaLumberjack/CocoaLumberjack"
#### Migrating to 2.x
* Replace `DDLog.h` imports by `#import <CocoaLumberjack/CocoaLumberjack.h>`.
* Using `ddLogLevel` to start using the library is now optional. If you define it add `#define LOG_LEVEL_DEF ddLogLevel` before `#import <CocoaLumberjack/CocoaLumberjack.h>` and make change its type to `DDLogLevel`
Advanced users, third party libraries:
Expand Down

0 comments on commit ed9c3c7

Please sign in to comment.