lipengwei
2020-05-27 ca75cc09395171ca363b040f815099fc734b3f9d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//
//  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
        #define DDLogWarn
        #define DDLogInfo
        #define DDLogError 
//        #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 */