File tree Expand file tree Collapse file tree 4 files changed +20
-2
lines changed Expand file tree Collapse file tree 4 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,9 @@ export function setDidSelectPromptOptionHandler(
146
146
export function setSessionProfilerEnabled (
147
147
sessionProfilerEnabled : boolean
148
148
) : void ;
149
+ export function setSdkDebugLogsLevel (
150
+ sdkDebugLogsLevel : sdkDebugLogsLevel
151
+ ) : void ;
149
152
export function getUnreadMessagesCount (
150
153
messageCountCallback : ( count : number ) => void
151
154
) : void ;
Original file line number Diff line number Diff line change @@ -144,6 +144,16 @@ const InstabugModule = {
144
144
Instabug . setSessionProfilerEnabled ( sessionProfilerEnabled ) ;
145
145
} ,
146
146
147
+ /**
148
+ * This API sets the verbosity level of logs used to debug The SDK. The defualt value in debug
149
+ * mode is sdkDebugLogsLevelVerbose and in production is sdkDebugLogsLevelError.
150
+ * @param {sdkDebugLogsLevel } sdkDebugLogsLevel - The verbosity level of logs.
151
+ *
152
+ */
153
+ setSdkDebugLogsLevel ( sdkDebugLogsLevel ) {
154
+ Instabug . setSdkDebugLogsLevel ( sdkDebugLogsLevel ) ;
155
+ } ,
156
+
147
157
/* istanbul ignore next */
148
158
/**
149
159
* @deprecated use {@link Replies.getUnreadRepliesCount}
Original file line number Diff line number Diff line change 32
32
33
33
- (void )setSessionProfilerEnabled : (BOOL )sessionProfilerEnabled ;
34
34
35
+ - (void )setSdkDebugLogsLevel : (IBGSDKDebugLogsLevel)sdkDebugLogsLevel ;
36
+
35
37
- (void )setLocale : (IBGLocale)locale ;
36
38
37
39
- (void )setColorTheme : (IBGColorTheme)colorTheme ;
98
100
- (void )logError : (NSString *)log ;
99
101
- (void )clearLogs ;
100
102
101
-
102
103
@end
Original file line number Diff line number Diff line change @@ -202,6 +202,10 @@ - (dispatch_queue_t)methodQueue {
202
202
currentReport = nil ;
203
203
}
204
204
205
+ RCT_EXPORT_METHOD (setSdkDebugLogsLevel:(IBGSDKDebugLogsLevel)sdkDebugLogsLevel) {
206
+ [Instabug setSdkDebugLogsLevel: sdkDebugLogsLevel];
207
+ }
208
+
205
209
RCT_EXPORT_METHOD (setLocale:(IBGLocale)locale) {
206
210
[Instabug setLocale: locale];
207
211
}
@@ -453,7 +457,7 @@ - (NSDictionary *)constantsToExport
453
457
@" sdkDebugLogsLevelError" : @(IBGSDKDebugLogsLevelError),
454
458
@" sdkDebugLogsLevelNone" : @(IBGSDKDebugLogsLevelNone),
455
459
456
-
460
+
457
461
@" emailFieldHidden" : @(IBGBugReportingInvocationOptionEmailFieldHidden),
458
462
@" emailFieldOptional" : @(IBGBugReportingInvocationOptionEmailFieldOptional),
459
463
@" commentFieldRequired" : @(IBGBugReportingInvocationOptionCommentFieldRequired),
You can’t perform that action at this time.
0 commit comments