react-native-gizwits-sdk-v5 1.5.5-thirdbluetooth → 1.5.6-thirdbluetooth

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/android/libs/sdk-bluetooth-release.aar +0 -0
  2. package/ios/GizwitsiOSSDK.framework/GizwitsiOSSDK +0 -0
  3. package/ios/GizwitsiOSSDK.framework/Headers/CocoaAsyncSocket.h +18 -0
  4. package/ios/GizwitsiOSSDK.framework/Headers/DDASLLogger.h +41 -0
  5. package/ios/GizwitsiOSSDK.framework/Headers/DDAbstractDatabaseLogger.h +102 -0
  6. package/ios/GizwitsiOSSDK.framework/Headers/DDContextFilterLogFormatter.h +63 -0
  7. package/ios/GizwitsiOSSDK.framework/Headers/DDDispatchQueueLogFormatter.h +128 -0
  8. package/ios/GizwitsiOSSDK.framework/Headers/DDFileLogger.h +340 -0
  9. package/ios/GizwitsiOSSDK.framework/Headers/DDLog+LOGV.h +99 -0
  10. package/ios/GizwitsiOSSDK.framework/Headers/DDLog.h +632 -0
  11. package/ios/GizwitsiOSSDK.framework/Headers/DDMultiFormatter.h +30 -0
  12. package/ios/GizwitsiOSSDK.framework/Headers/DDTTYLogger.h +171 -0
  13. package/ios/GizwitsiOSSDK.framework/Headers/ESPAES.h +19 -0
  14. package/ios/GizwitsiOSSDK.framework/Headers/ESPDataCode.h +44 -0
  15. package/ios/GizwitsiOSSDK.framework/Headers/ESPDatumCode.h +38 -0
  16. package/ios/GizwitsiOSSDK.framework/Headers/ESPGuideCode.h +15 -0
  17. package/ios/GizwitsiOSSDK.framework/Headers/ESPTools.h +22 -0
  18. package/ios/GizwitsiOSSDK.framework/Headers/ESPTouch.h +36 -0
  19. package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchDelegate.h +24 -0
  20. package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchGenerator.h +46 -0
  21. package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchResult.h +36 -0
  22. package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchTask.h +124 -0
  23. package/ios/GizwitsiOSSDK.framework/Headers/ESPTouchTaskParameter.h +173 -0
  24. package/ios/GizwitsiOSSDK.framework/Headers/ESPUDPSocketClient.h +50 -0
  25. package/ios/GizwitsiOSSDK.framework/Headers/ESPUDPSocketServer.h +49 -0
  26. package/ios/GizwitsiOSSDK.framework/Headers/ESP_ByteUtil.h +128 -0
  27. package/ios/GizwitsiOSSDK.framework/Headers/ESP_CRC8.h +61 -0
  28. package/ios/GizwitsiOSSDK.framework/Headers/ESP_NetUtil.h +82 -0
  29. package/ios/GizwitsiOSSDK.framework/Headers/ESP_WifiUtil.h +33 -0
  30. package/ios/GizwitsiOSSDK.framework/Headers/ForegroundReconnection.h +23 -0
  31. package/ios/GizwitsiOSSDK.framework/Headers/GCDTimer.h +19 -0
  32. package/ios/GizwitsiOSSDK.framework/Headers/GizwitsiOSSDK-Swift.h +338 -0
  33. package/ios/GizwitsiOSSDK.framework/Headers/GizwitsiOSSDK.h +24 -0
  34. package/ios/GizwitsiOSSDK.framework/Headers/MQTTClient.h +39 -0
  35. package/ios/GizwitsiOSSDK.framework/Headers/MQTTInMemoryPersistence.h +16 -0
  36. package/ios/GizwitsiOSSDK.framework/Headers/MQTTSSLSecurityPolicyDecoder.h +19 -0
  37. package/ios/GizwitsiOSSDK.framework/Headers/MQTTSSLSecurityPolicyEncoder.h +18 -0
  38. package/ios/GizwitsiOSSDK.framework/Headers/MQTTSessionLegacy.h +112 -0
  39. package/ios/GizwitsiOSSDK.framework/Headers/MQTTSessionSynchron.h +194 -0
  40. package/ios/GizwitsiOSSDK.framework/Headers/MQTTStrict.h +33 -0
  41. package/ios/GizwitsiOSSDK.framework/Headers/MQTTUntil.h +14 -0
  42. package/ios/GizwitsiOSSDK.framework/Headers/ReconnectTimer.h +21 -0
  43. package/ios/GizwitsiOSSDK.framework/Headers/_GCDAsyncSocket.h +1226 -0
  44. package/ios/GizwitsiOSSDK.framework/Headers/_GCDAsyncUdpSocket.h +1036 -0
  45. package/ios/GizwitsiOSSDK.framework/Headers/_GizwitsParser.h +61 -0
  46. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTCFSocketDecoder.h +39 -0
  47. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTCFSocketEncoder.h +38 -0
  48. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTCFSocketTransport.h +79 -0
  49. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTCoreDataPersistence.h +21 -0
  50. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTDecoder.h +66 -0
  51. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTLog.h +123 -0
  52. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTMessage.h +233 -0
  53. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTPersistence.h +124 -0
  54. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTProperties.h +76 -0
  55. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTSSLSecurityPolicy.h +158 -0
  56. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTSSLSecurityPolicyTransport.h +30 -0
  57. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTSession.h +886 -0
  58. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTSessionManager.h +237 -0
  59. package/ios/GizwitsiOSSDK.framework/Headers/_MQTTTransport.h +114 -0
  60. package/ios/GizwitsiOSSDK.framework/Headers/_SSZipArchive.h +178 -0
  61. package/ios/GizwitsiOSSDK.framework/Headers/_SSZipCommon.h +71 -0
  62. package/ios/GizwitsiOSSDK.framework/Headers/_ZipArchive.h +26 -0
  63. package/ios/GizwitsiOSSDK.framework/Headers/a_weighting.h +88 -0
  64. package/ios/GizwitsiOSSDK.framework/Headers/aubio.h +231 -0
  65. package/ios/GizwitsiOSSDK.framework/Headers/audio_unit.h +61 -0
  66. package/ios/GizwitsiOSSDK.framework/Headers/awhitening.h +125 -0
  67. package/ios/GizwitsiOSSDK.framework/Headers/beattracking.h +121 -0
  68. package/ios/GizwitsiOSSDK.framework/Headers/biquad.h +75 -0
  69. package/ios/GizwitsiOSSDK.framework/Headers/c_weighting.h +88 -0
  70. package/ios/GizwitsiOSSDK.framework/Headers/common.h +104 -0
  71. package/ios/GizwitsiOSSDK.framework/Headers/cvec.h +247 -0
  72. package/ios/GizwitsiOSSDK.framework/Headers/dct.h +85 -0
  73. package/ios/GizwitsiOSSDK.framework/Headers/fft.h +144 -0
  74. package/ios/GizwitsiOSSDK.framework/Headers/filter.h +176 -0
  75. package/ios/GizwitsiOSSDK.framework/Headers/filterbank.h +90 -0
  76. package/ios/GizwitsiOSSDK.framework/Headers/filterbank_mel.h +72 -0
  77. package/ios/GizwitsiOSSDK.framework/Headers/fmat.h +172 -0
  78. package/ios/GizwitsiOSSDK.framework/Headers/fvec.h +178 -0
  79. package/ios/GizwitsiOSSDK.framework/Headers/hist.h +63 -0
  80. package/ios/GizwitsiOSSDK.framework/Headers/ioutils.h +60 -0
  81. package/ios/GizwitsiOSSDK.framework/Headers/log.h +99 -0
  82. package/ios/GizwitsiOSSDK.framework/Headers/lvec.h +118 -0
  83. package/ios/GizwitsiOSSDK.framework/Headers/mathutils.h +330 -0
  84. package/ios/GizwitsiOSSDK.framework/Headers/mfcc.h +79 -0
  85. package/ios/GizwitsiOSSDK.framework/Headers/musicutils.h +171 -0
  86. package/ios/GizwitsiOSSDK.framework/Headers/notes.h +113 -0
  87. package/ios/GizwitsiOSSDK.framework/Headers/onset.h +347 -0
  88. package/ios/GizwitsiOSSDK.framework/Headers/parameter.h +159 -0
  89. package/ios/GizwitsiOSSDK.framework/Headers/peakpicker.h +57 -0
  90. package/ios/GizwitsiOSSDK.framework/Headers/phasevoc.h +112 -0
  91. package/ios/GizwitsiOSSDK.framework/Headers/pitch.h +197 -0
  92. package/ios/GizwitsiOSSDK.framework/Headers/pitchfcomb.h +76 -0
  93. package/ios/GizwitsiOSSDK.framework/Headers/pitchmcomb.h +77 -0
  94. package/ios/GizwitsiOSSDK.framework/Headers/pitchschmitt.h +75 -0
  95. package/ios/GizwitsiOSSDK.framework/Headers/pitchspecacf.h +103 -0
  96. package/ios/GizwitsiOSSDK.framework/Headers/pitchyin.h +100 -0
  97. package/ios/GizwitsiOSSDK.framework/Headers/pitchyinfast.h +102 -0
  98. package/ios/GizwitsiOSSDK.framework/Headers/pitchyinfft.h +99 -0
  99. package/ios/GizwitsiOSSDK.framework/Headers/resampler.h +65 -0
  100. package/ios/GizwitsiOSSDK.framework/Headers/sampler.h +140 -0
  101. package/ios/GizwitsiOSSDK.framework/Headers/scale.h +80 -0
  102. package/ios/GizwitsiOSSDK.framework/Headers/sink.h +181 -0
  103. package/ios/GizwitsiOSSDK.framework/Headers/sink_apple_audio.h +163 -0
  104. package/ios/GizwitsiOSSDK.framework/Headers/sink_sndfile.h +162 -0
  105. package/ios/GizwitsiOSSDK.framework/Headers/sink_wavwrite.h +162 -0
  106. package/ios/GizwitsiOSSDK.framework/Headers/source.h +184 -0
  107. package/ios/GizwitsiOSSDK.framework/Headers/source_apple_audio.h +156 -0
  108. package/ios/GizwitsiOSSDK.framework/Headers/source_avcodec.h +155 -0
  109. package/ios/GizwitsiOSSDK.framework/Headers/source_sndfile.h +155 -0
  110. package/ios/GizwitsiOSSDK.framework/Headers/source_wavread.h +160 -0
  111. package/ios/GizwitsiOSSDK.framework/Headers/specdesc.h +204 -0
  112. package/ios/GizwitsiOSSDK.framework/Headers/tempo.h +255 -0
  113. package/ios/GizwitsiOSSDK.framework/Headers/tss.h +103 -0
  114. package/ios/GizwitsiOSSDK.framework/Headers/types.h +70 -0
  115. package/ios/GizwitsiOSSDK.framework/Headers/vecutils.h +116 -0
  116. package/ios/GizwitsiOSSDK.framework/Headers/wavetable.h +178 -0
  117. package/ios/GizwitsiOSSDK.framework/Info.plist +0 -0
  118. package/ios/GizwitsiOSSDK.framework/LICENSE +17 -0
  119. package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  120. package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.abi.json +57489 -0
  121. package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +1752 -0
  122. package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  123. package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.swiftinterface +1752 -0
  124. package/ios/GizwitsiOSSDK.framework/Modules/GizwitsiOSSDK.swiftmodule/arm64-apple-ios.swiftmodule +0 -0
  125. package/ios/GizwitsiOSSDK.framework/Modules/module.modulemap +11 -0
  126. package/ios/GizwitsiOSSDK.framework/PrivacyInfo.xcprivacy +23 -0
  127. package/ios/GizwitsiOSSDK.framework/README.md +31 -0
  128. package/package.json +1 -1
  129. package/react-native-gizwits-sdk-v5.podspec +2 -2
@@ -0,0 +1,18 @@
1
+ //
2
+ // CocoaAsyncSocket.h
3
+ // CocoaAsyncSocket
4
+ //
5
+ // Created by Derek Clarkson on 10/08/2015.
6
+ // CocoaAsyncSocket project is in the public domain.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>
10
+
11
+ //! Project version number for CocoaAsyncSocket.
12
+ FOUNDATION_EXPORT double _cocoaAsyncSocketVersionNumber;
13
+
14
+ //! Project version string for CocoaAsyncSocket.
15
+ FOUNDATION_EXPORT const unsigned char _cocoaAsyncSocketVersionString[];
16
+
17
+ #import "_GCDAsyncSocket.h"
18
+ #import "_GCDAsyncUdpSocket.h"
@@ -0,0 +1,41 @@
1
+ #import <Foundation/Foundation.h>
2
+ #import <asl.h>
3
+
4
+ #import "DDLog.h"
5
+
6
+ /**
7
+ * Welcome to Cocoa Lumberjack!
8
+ *
9
+ * The project page has a wealth of documentation if you have any questions.
10
+ * https://github.com/CocoaLumberjack/CocoaLumberjack
11
+ *
12
+ * If you're new to the project you may wish to read the "Getting Started" wiki.
13
+ * https://github.com/CocoaLumberjack/CocoaLumberjack/wiki/GettingStarted
14
+ *
15
+ *
16
+ * This class provides a logger for the Apple System Log facility.
17
+ *
18
+ * As described in the "Getting Started" page,
19
+ * the traditional NSLog() function directs it's output to two places:
20
+ *
21
+ * - Apple System Log
22
+ * - StdErr (if stderr is a TTY) so log statements show up in Xcode console
23
+ *
24
+ * To duplicate NSLog() functionality you can simply add this logger and a tty logger.
25
+ * However, if you instead choose to use file logging (for faster performance),
26
+ * you may choose to use a file logger and a tty logger.
27
+ **/
28
+
29
+ @interface DDASLLogger : DDAbstractLogger <DDLogger>
30
+ {
31
+ aslclient client;
32
+ }
33
+
34
+ + (instancetype)sharedInstance;
35
+
36
+ // Inherited from DDAbstractLogger
37
+
38
+ // - (id <DDLogFormatter>)logFormatter;
39
+ // - (void)setLogFormatter:(id <DDLogFormatter>)formatter;
40
+
41
+ @end
@@ -0,0 +1,102 @@
1
+ #import <Foundation/Foundation.h>
2
+
3
+ #import "DDLog.h"
4
+
5
+ /**
6
+ * Welcome to Cocoa Lumberjack!
7
+ *
8
+ * The project page has a wealth of documentation if you have any questions.
9
+ * https://github.com/CocoaLumberjack/CocoaLumberjack
10
+ *
11
+ * If you're new to the project you may wish to read the "Getting Started" wiki.
12
+ * https://github.com/CocoaLumberjack/CocoaLumberjack/wiki/GettingStarted
13
+ *
14
+ *
15
+ * This class provides an abstract implementation of a database logger.
16
+ *
17
+ * That is, it provides the base implementation for a database logger to build atop of.
18
+ * All that is needed for a concrete database logger is to extend this class
19
+ * and override the methods in the implementation file that are prefixed with "db_".
20
+ **/
21
+
22
+ @interface DDAbstractDatabaseLogger : DDAbstractLogger {
23
+ @protected
24
+ NSUInteger saveThreshold;
25
+ NSTimeInterval saveInterval;
26
+ NSTimeInterval maxAge;
27
+ NSTimeInterval deleteInterval;
28
+ BOOL deleteOnEverySave;
29
+
30
+ BOOL saveTimerSuspended;
31
+ NSUInteger unsavedCount;
32
+ dispatch_time_t unsavedTime;
33
+ dispatch_source_t saveTimer;
34
+ dispatch_time_t lastDeleteTime;
35
+ dispatch_source_t deleteTimer;
36
+ }
37
+
38
+ /**
39
+ * Specifies how often to save the data to disk.
40
+ * Since saving is an expensive operation (disk io) it is not done after every log statement.
41
+ * These properties allow you to configure how/when the logger saves to disk.
42
+ *
43
+ * A save is done when either (whichever happens first):
44
+ *
45
+ * - The number of unsaved log entries reaches saveThreshold
46
+ * - The amount of time since the oldest unsaved log entry was created reaches saveInterval
47
+ *
48
+ * You can optionally disable the saveThreshold by setting it to zero.
49
+ * If you disable the saveThreshold you are entirely dependent on the saveInterval.
50
+ *
51
+ * You can optionally disable the saveInterval by setting it to zero (or a negative value).
52
+ * If you disable the saveInterval you are entirely dependent on the saveThreshold.
53
+ *
54
+ * It's not wise to disable both saveThreshold and saveInterval.
55
+ *
56
+ * The default saveThreshold is 500.
57
+ * The default saveInterval is 60 seconds.
58
+ **/
59
+ @property (assign, readwrite) NSUInteger saveThreshold;
60
+ @property (assign, readwrite) NSTimeInterval saveInterval;
61
+
62
+ /**
63
+ * It is likely you don't want the log entries to persist forever.
64
+ * Doing so would allow the database to grow infinitely large over time.
65
+ *
66
+ * The maxAge property provides a way to specify how old a log statement can get
67
+ * before it should get deleted from the database.
68
+ *
69
+ * The deleteInterval specifies how often to sweep for old log entries.
70
+ * Since deleting is an expensive operation (disk io) is is done on a fixed interval.
71
+ *
72
+ * An alternative to the deleteInterval is the deleteOnEverySave option.
73
+ * This specifies that old log entries should be deleted during every save operation.
74
+ *
75
+ * You can optionally disable the maxAge by setting it to zero (or a negative value).
76
+ * If you disable the maxAge then old log statements are not deleted.
77
+ *
78
+ * You can optionally disable the deleteInterval by setting it to zero (or a negative value).
79
+ *
80
+ * If you disable both deleteInterval and deleteOnEverySave then old log statements are not deleted.
81
+ *
82
+ * It's not wise to enable both deleteInterval and deleteOnEverySave.
83
+ *
84
+ * The default maxAge is 7 days.
85
+ * The default deleteInterval is 5 minutes.
86
+ * The default deleteOnEverySave is NO.
87
+ **/
88
+ @property (assign, readwrite) NSTimeInterval maxAge;
89
+ @property (assign, readwrite) NSTimeInterval deleteInterval;
90
+ @property (assign, readwrite) BOOL deleteOnEverySave;
91
+
92
+ /**
93
+ * Forces a save of any pending log entries (flushes log entries to disk).
94
+ **/
95
+ - (void)savePendingLogEntries;
96
+
97
+ /**
98
+ * Removes any log entries that are older than maxAge.
99
+ **/
100
+ - (void)deleteOldLogEntries;
101
+
102
+ @end
@@ -0,0 +1,63 @@
1
+ #import <Foundation/Foundation.h>
2
+ #import "DDLog.h"
3
+
4
+ /**
5
+ * Welcome to Cocoa Lumberjack!
6
+ *
7
+ * The project page has a wealth of documentation if you have any questions.
8
+ * https://github.com/CocoaLumberjack/CocoaLumberjack
9
+ *
10
+ * If you're new to the project you may wish to read the "Getting Started" page.
11
+ * https://github.com/CocoaLumberjack/CocoaLumberjack/wiki/GettingStarted
12
+ *
13
+ *
14
+ * This class provides a log formatter that filters log statements from a logging context not on the whitelist.
15
+ *
16
+ * A log formatter can be added to any logger to format and/or filter its output.
17
+ * You can learn more about log formatters here:
18
+ * https://github.com/CocoaLumberjack/CocoaLumberjack/wiki/CustomFormatters
19
+ *
20
+ * You can learn more about logging context's here:
21
+ * https://github.com/CocoaLumberjack/CocoaLumberjack/wiki/CustomContext
22
+ *
23
+ * But here's a quick overview / refresher:
24
+ *
25
+ * Every log statement has a logging context.
26
+ * These come from the underlying logging macros defined in DDLog.h.
27
+ * The default logging context is zero.
28
+ * You can define multiple logging context's for use in your application.
29
+ * For example, logically separate parts of your app each have a different logging context.
30
+ * Also 3rd party frameworks that make use of Lumberjack generally use their own dedicated logging context.
31
+ **/
32
+ @interface DDContextWhitelistFilterLogFormatter : NSObject <DDLogFormatter>
33
+
34
+ - (id)init;
35
+
36
+ - (void)addToWhitelist:(int)loggingContext;
37
+ - (void)removeFromWhitelist:(int)loggingContext;
38
+
39
+ - (NSArray *)whitelist;
40
+
41
+ - (BOOL)isOnWhitelist:(int)loggingContext;
42
+
43
+ @end
44
+
45
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
46
+ #pragma mark -
47
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
48
+
49
+ /**
50
+ * This class provides a log formatter that filters log statements from a logging context on the blacklist.
51
+ **/
52
+ @interface DDContextBlacklistFilterLogFormatter : NSObject <DDLogFormatter>
53
+
54
+ - (id)init;
55
+
56
+ - (void)addToBlacklist:(int)loggingContext;
57
+ - (void)removeFromBlacklist:(int)loggingContext;
58
+
59
+ - (NSArray *)blacklist;
60
+
61
+ - (BOOL)isOnBlacklist:(int)loggingContext;
62
+
63
+ @end
@@ -0,0 +1,128 @@
1
+ #import <Foundation/Foundation.h>
2
+ #import <libkern/OSAtomic.h>
3
+ #import "DDLog.h"
4
+
5
+
6
+ /**
7
+ * Welcome to Cocoa Lumberjack!
8
+ *
9
+ * The project page has a wealth of documentation if you have any questions.
10
+ * https://github.com/CocoaLumberjack/CocoaLumberjack
11
+ *
12
+ * If you're new to the project you may wish to read the "Getting Started" page.
13
+ * https://github.com/CocoaLumberjack/CocoaLumberjack/wiki/GettingStarted
14
+ *
15
+ *
16
+ * This class provides a log formatter that prints the dispatch_queue label instead of the mach_thread_id.
17
+ *
18
+ * A log formatter can be added to any logger to format and/or filter its output.
19
+ * You can learn more about log formatters here:
20
+ * https://github.com/CocoaLumberjack/CocoaLumberjack/wiki/CustomFormatters
21
+ *
22
+ * A typical NSLog (or DDTTYLogger) prints detailed info as [<process_id>:<thread_id>].
23
+ * For example:
24
+ *
25
+ * 2011-10-17 20:21:45.435 AppName[19928:5207] Your log message here
26
+ *
27
+ * Where:
28
+ * - 19928 = process id
29
+ * - 5207 = thread id (mach_thread_id printed in hex)
30
+ *
31
+ * When using grand central dispatch (GCD), this information is less useful.
32
+ * This is because a single serial dispatch queue may be run on any thread from an internally managed thread pool.
33
+ * For example:
34
+ *
35
+ * 2011-10-17 20:32:31.111 AppName[19954:4d07] Message from my_serial_dispatch_queue
36
+ * 2011-10-17 20:32:31.112 AppName[19954:5207] Message from my_serial_dispatch_queue
37
+ * 2011-10-17 20:32:31.113 AppName[19954:2c55] Message from my_serial_dispatch_queue
38
+ *
39
+ * This formatter allows you to replace the standard [box:info] with the dispatch_queue name.
40
+ * For example:
41
+ *
42
+ * 2011-10-17 20:32:31.111 AppName[img-scaling] Message from my_serial_dispatch_queue
43
+ * 2011-10-17 20:32:31.112 AppName[img-scaling] Message from my_serial_dispatch_queue
44
+ * 2011-10-17 20:32:31.113 AppName[img-scaling] Message from my_serial_dispatch_queue
45
+ *
46
+ * If the dispatch_queue doesn't have a set name, then it falls back to the thread name.
47
+ * If the current thread doesn't have a set name, then it falls back to the mach_thread_id in hex (like normal).
48
+ *
49
+ * Note: If manually creating your own background threads (via NSThread/alloc/init or NSThread/detachNeThread),
50
+ * you can use [[NSThread currentThread] setName:(NSString *)].
51
+ **/
52
+ @interface DDDispatchQueueLogFormatter : NSObject <DDLogFormatter> {
53
+ @protected
54
+
55
+ NSString *dateFormatString;
56
+ }
57
+
58
+ /**
59
+ * Standard init method.
60
+ * Configure using properties as desired.
61
+ **/
62
+ - (id)init;
63
+
64
+ /**
65
+ * The minQueueLength restricts the minimum size of the [detail box].
66
+ * If the minQueueLength is set to 0, there is no restriction.
67
+ *
68
+ * For example, say a dispatch_queue has a label of "diskIO":
69
+ *
70
+ * If the minQueueLength is 0: [diskIO]
71
+ * If the minQueueLength is 4: [diskIO]
72
+ * If the minQueueLength is 5: [diskIO]
73
+ * If the minQueueLength is 6: [diskIO]
74
+ * If the minQueueLength is 7: [diskIO ]
75
+ * If the minQueueLength is 8: [diskIO ]
76
+ *
77
+ * The default minQueueLength is 0 (no minimum, so [detail box] won't be padded).
78
+ *
79
+ * If you want every [detail box] to have the exact same width,
80
+ * set both minQueueLength and maxQueueLength to the same value.
81
+ **/
82
+ @property (assign) NSUInteger minQueueLength;
83
+
84
+ /**
85
+ * The maxQueueLength restricts the number of characters that will be inside the [detail box].
86
+ * If the maxQueueLength is 0, there is no restriction.
87
+ *
88
+ * For example, say a dispatch_queue has a label of "diskIO":
89
+ *
90
+ * If the maxQueueLength is 0: [diskIO]
91
+ * If the maxQueueLength is 4: [disk]
92
+ * If the maxQueueLength is 5: [diskI]
93
+ * If the maxQueueLength is 6: [diskIO]
94
+ * If the maxQueueLength is 7: [diskIO]
95
+ * If the maxQueueLength is 8: [diskIO]
96
+ *
97
+ * The default maxQueueLength is 0 (no maximum, so [detail box] won't be truncated).
98
+ *
99
+ * If you want every [detail box] to have the exact same width,
100
+ * set both minQueueLength and maxQueueLength to the same value.
101
+ **/
102
+ @property (assign) NSUInteger maxQueueLength;
103
+
104
+ /**
105
+ * Sometimes queue labels have long names like "com.apple.main-queue",
106
+ * but you'd prefer something shorter like simply "main".
107
+ *
108
+ * This method allows you to set such preferred replacements.
109
+ * The above example is set by default.
110
+ *
111
+ * To remove/undo a previous replacement, invoke this method with nil for the 'shortLabel' parameter.
112
+ **/
113
+ - (NSString *)replacementStringForQueueLabel:(NSString *)longLabel;
114
+ - (void)setReplacementString:(NSString *)shortLabel forQueueLabel:(NSString *)longLabel;
115
+
116
+ @end
117
+
118
+ /**
119
+ * Method declarations that make it easier to extend/modify DDDispatchQueueLogFormatter
120
+ **/
121
+ @interface DDDispatchQueueLogFormatter (OverridableMethods)
122
+
123
+ - (NSString *)stringFromDate:(NSDate *)date;
124
+ - (NSString *)queueThreadLabelForLogMessage:(DDLogMessage *)logMessage;
125
+ - (NSString *)formatLogMessage:(DDLogMessage *)logMessage;
126
+
127
+ @end
128
+