commit | author | age
|
d8c7af
|
1 |
// |
L |
2 |
// MQTTLog.h |
|
3 |
// MQTTClient |
|
4 |
// |
|
5 |
// Created by Christoph Krey on 10.02.16. |
|
6 |
// Copyright © 2016 Christoph Krey. All rights reserved. |
|
7 |
// |
|
8 |
|
|
9 |
#ifndef MQTTLog_h |
|
10 |
|
|
11 |
#define MQTTLog_h |
|
12 |
|
|
13 |
|
|
14 |
#ifdef LUMBERJACK |
|
15 |
#define LOG_LEVEL_DEF ddLogLevel |
|
16 |
#import <CocoaLumberjack/CocoaLumberjack.h> |
|
17 |
#ifndef myLogLevel |
|
18 |
#ifdef DEBUG |
|
19 |
static const DDLogLevel ddLogLevel = DDLogLevelWarning; |
|
20 |
#else |
|
21 |
static const DDLogLevel ddLogLevel = DDLogLevelWarning; |
|
22 |
#endif |
|
23 |
#else |
|
24 |
static const DDLogLevel ddLogLevel = myLogLevel; |
|
25 |
#endif |
|
26 |
#else |
|
27 |
#ifdef DEBUG |
|
28 |
#define DDLogVerbose |
|
29 |
#define DDLogWarn |
|
30 |
#define DDLogInfo |
|
31 |
#define DDLogError |
|
32 |
// #define DDLogVerbose NSLog |
|
33 |
// #define DDLogWarn NSLog |
|
34 |
// #define DDLogInfo NSLog |
|
35 |
// #define DDLogError NSLog |
|
36 |
#else |
|
37 |
#define DDLogVerbose(...) |
|
38 |
#define DDLogWarn(...) |
|
39 |
#define DDLogInfo(...) |
|
40 |
#define DDLogError(...) |
|
41 |
#endif |
|
42 |
#endif |
|
43 |
|
|
44 |
|
|
45 |
#endif /* MQTTLog_h */ |