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(
146146export function setSessionProfilerEnabled (
147147 sessionProfilerEnabled : boolean
148148) : void ;
149+ export function setSdkDebugLogsLevel (
150+ sdkDebugLogsLevel : sdkDebugLogsLevel
151+ ) : void ;
149152export function getUnreadMessagesCount (
150153 messageCountCallback : ( count : number ) => void
151154) : void ;
Original file line number Diff line number Diff line change @@ -144,6 +144,16 @@ const InstabugModule = {
144144 Instabug . setSessionProfilerEnabled ( sessionProfilerEnabled ) ;
145145 } ,
146146
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+
147157 /* istanbul ignore next */
148158 /**
149159 * @deprecated use {@link Replies.getUnreadRepliesCount}
Original file line number Diff line number Diff line change 3232
3333- (void )setSessionProfilerEnabled : (BOOL )sessionProfilerEnabled ;
3434
35+ - (void )setSdkDebugLogsLevel : (IBGSDKDebugLogsLevel)sdkDebugLogsLevel ;
36+
3537- (void )setLocale : (IBGLocale)locale ;
3638
3739- (void )setColorTheme : (IBGColorTheme)colorTheme ;
98100- (void )logError : (NSString *)log ;
99101- (void )clearLogs ;
100102
101-
102103@end
Original file line number Diff line number Diff line change @@ -202,6 +202,10 @@ - (dispatch_queue_t)methodQueue {
202202 currentReport = nil ;
203203}
204204
205+ RCT_EXPORT_METHOD (setSdkDebugLogsLevel:(IBGSDKDebugLogsLevel)sdkDebugLogsLevel) {
206+ [Instabug setSdkDebugLogsLevel: sdkDebugLogsLevel];
207+ }
208+
205209RCT_EXPORT_METHOD (setLocale:(IBGLocale)locale) {
206210 [Instabug setLocale: locale];
207211}
@@ -453,7 +457,7 @@ - (NSDictionary *)constantsToExport
453457 @" sdkDebugLogsLevelError" : @(IBGSDKDebugLogsLevelError),
454458 @" sdkDebugLogsLevelNone" : @(IBGSDKDebugLogsLevelNone),
455459
456-
460+
457461 @" emailFieldHidden" : @(IBGBugReportingInvocationOptionEmailFieldHidden),
458462 @" emailFieldOptional" : @(IBGBugReportingInvocationOptionEmailFieldOptional),
459463 @" commentFieldRequired" : @(IBGBugReportingInvocationOptionCommentFieldRequired),
You can’t perform that action at this time.
0 commit comments