-
Notifications
You must be signed in to change notification settings - Fork 465
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
> Release date 2016-02-10 [FIX] Logs and CocoaLumberjack dependency closes #107
- Loading branch information
Christoph Krey
committed
Feb 10, 2016
1 parent
b87b68d
commit 0339526
Showing
23 changed files
with
138 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// | ||
// MQTTLog.h | ||
// MQTTClient | ||
// | ||
// Created by Christoph Krey on 10.02.16. | ||
// Copyright © 2016 Christoph Krey. All rights reserved. | ||
// | ||
|
||
#ifndef MQTTLog_h | ||
|
||
#define MQTTLog_h | ||
|
||
|
||
#ifdef LUMBERJACK | ||
#define LOG_LEVEL_DEF ddLogLevel | ||
#import <CocoaLumberjack/CocoaLumberjack.h> | ||
#ifndef myLogLevel | ||
#ifdef DEBUG | ||
static const DDLogLevel ddLogLevel = DDLogLevelWarning; | ||
#else | ||
static const DDLogLevel ddLogLevel = DDLogLevelWarning; | ||
#endif | ||
#else | ||
static const DDLogLevel ddLogLevel = myLogLevel; | ||
#endif | ||
#else | ||
#ifdef DEBUG | ||
#define DDLogVerbose NSLog | ||
#define DDLogWarn NSLog | ||
#define DDLogInfo NSLog | ||
#define DDLogError NSLog | ||
#else | ||
#define DDLogVerbose(...) | ||
#define DDLogWarn(...) | ||
#define DDLogInfo(...) | ||
#define DDLogError(...) | ||
#endif | ||
#endif | ||
|
||
|
||
#endif /* MQTTLog_h */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.