-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApplicationLogging.h
More file actions
88 lines (68 loc) · 1.81 KB
/
ApplicationLogging.h
File metadata and controls
88 lines (68 loc) · 1.81 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
//
// ApplicationLogging.h
//
// Licensed by ruralcoder.com under the
// Creative Commons Attribution-ShareAlike 3.0 Unported License
#define DEBUG_LOGS 0
#define NETWORK_LOGS 0
#define HTTP_REQUEST_LOGS 0
#define APPLICATION_LOGS 0
#define SOCIAL_LOGS 0
#define ALLOC_LOGS 0
#define SUMMARY_LOGS 0
#define OPERATION_QUEUE_LOGS 0
#define ERROR_LOGS 0
#if HTTP_REQUEST_LOGS == 1
#warning "HTTP_REQUEST_LOGS are ON - disable in release."
# define HttpLog(...) NSLog(__VA_ARGS__)
#else
# define HttpLog(...) /* */
#endif
#if ERROR_LOGS == 1
#warning "ERROR_LOGS are ON - disable in release."
# define ErrorLog(...) NSLog(__VA_ARGS__)
#else
# define ErrorLog(...) /* */
#endif
#if DEBUG_LOGS == 1
#warning "DEBUG_LOGS are ON - disable in release."
# define DLog(...) NSLog(__VA_ARGS__)
#else
# define DLog(...) /* */
#endif
#if OPERATION_QUEUE_LOGS == 1
#warning "OPERATION_QUEUE_LOGS are ON - disable in release."
# define OpQLog(...) NSLog(__VA_ARGS__)
#else
# define OpQLog(...) /* */
#endif
#if ALLOC_LOGS == 1
#warning "ALLOC_LOGS are ON - disable in release."
# define AllocLog(...) NSLog(__VA_ARGS__)
#else
# define AllocLog(...) /* */
#endif
#if SUMMARY_LOGS == 1
#warning "SUMMARY_LOGS are ON - disable in release."
# define SumLog(...) NSLog(__VA_ARGS__)
#else
# define SumLog(...) /* */
#endif
#if NETWORK_LOGS == 1
#warning "NETWORK_LOGS are ON - disable in release."
# define NetLog(...) NSLog(__VA_ARGS__)
#else
# define NetLog(...) /* */
#endif
#if SOCIAL_LOGS == 1
#warning "SOCIAL_LOGS are ON - disable in release."
# define SocLog(...) NSLog(__VA_ARGS__)
#else
# define SocLog(...) /* */
#endif
#if APPLICATION_LOGS == 1
#warning "APPLICATION_LOGS are ON - disable in release."
# define AppLog(...) NSLog(__VA_ARGS__)
#else
# define AppLog(...) /* */
#endif