@@ -355,25 +355,25 @@ - (NSDictionary *)constantsToExport
355
355
@" invocationEventTwoFingersSwipeLeft" : @(IBGInvocationEventTwoFingersSwipeLeft),
356
356
@" invocationEventRightEdgePan" : @(IBGInvocationEventRightEdgePan),
357
357
@" invocationEventFloatingButton" : @(IBGInvocationEventFloatingButton),
358
-
358
+
359
359
@" invocationModeNA" : @(IBGInvocationModeNA),
360
360
@" invocationModeNewBug" : @(IBGInvocationModeNewBug),
361
361
@" invocationModeNewFeedback" : @(IBGInvocationModeNewFeedback),
362
362
@" invocationModeNewChat" : @(IBGInvocationModeNewChat),
363
363
@" invocationModeChatsList" : @(IBGInvocationModeChatsList),
364
-
364
+
365
365
@" dismissTypeSubmit" : @(IBGDismissTypeSubmit),
366
366
@" dismissTypeCancel" : @(IBGDismissTypeCancel),
367
367
@" dismissTypeAddAtttachment" : @(IBGDismissTypeAddAttachment),
368
-
368
+
369
369
@" reportTypeBug" : @(IBGReportTypeBug),
370
370
@" reportTypeFeedback" : @(IBGReportTypeFeedback),
371
-
371
+
372
372
@" rectMinXEdge" : @(CGRectMinXEdge),
373
373
@" rectMinYEdge" : @(CGRectMinYEdge),
374
374
@" rectMaxXEdge" : @(CGRectMaxXEdge),
375
375
@" rectMaxYEdge" : @(CGRectMaxYEdge),
376
-
376
+
377
377
@" localeArabic" : @(IBGLocaleArabic),
378
378
@" localeChineseSimplified" : @(IBGLocaleChineseSimplified),
379
379
@" localeChineseTraditional" : @(IBGLocaleChineseTraditional),
@@ -391,10 +391,10 @@ - (NSDictionary *)constantsToExport
391
391
@" localeSpanish" : @(IBGLocaleSpanish),
392
392
@" localeSwedish" : @(IBGLocaleSwedish),
393
393
@" localeTurkish" : @(IBGLocaleTurkish),
394
-
394
+
395
395
@" colorThemeLight" : @(IBGColorThemeLight),
396
396
@" colorThemeDark" : @(IBGColorThemeDark),
397
-
397
+
398
398
@" shakeHint" : @(IBGStringShakeHint),
399
399
@" swipeHint" : @(IBGStringSwipeHint),
400
400
@" edgeSwipeStartHint" : @(IBGStringEdgeSwipeStartHint),
@@ -452,10 +452,26 @@ + (BOOL)iOSVersionIsLessThan:(NSString *)iOSVersion {
452
452
{
453
453
NSString *log = RCTFormatLog ([NSDate date ], level, fileName, lineNumber, message);
454
454
NSString *compeleteLog = [NSString stringWithFormat: @" Instabug - REACT LOG: %@ " , log];
455
-
455
+
456
456
va_list arg_list;
457
-
458
- IBGNSLog (compeleteLog, arg_list);
457
+
458
+ switch (level) {
459
+ case RCTLogLevelTrace:
460
+ IBGNSLogWithLevel (compeleteLog, arg_list, IBGLogLevelTrace);
461
+ break ;
462
+ case RCTLogLevelInfo:
463
+ IBGNSLogWithLevel (compeleteLog, arg_list, IBGLogLevelInfo);
464
+ break ;
465
+ case RCTLogLevelWarning:
466
+ IBGNSLogWithLevel (compeleteLog, arg_list, IBGLogLevelWarning);
467
+ break ;
468
+ case RCTLogLevelError:
469
+ IBGNSLogWithLevel (compeleteLog, arg_list, IBGLogLevelError);
470
+ break ;
471
+ case RCTLogLevelFatal:
472
+ IBGNSLogWithLevel (compeleteLog, arg_list, IBGLogLevelFatal);
473
+ break ;
474
+ }
459
475
};
460
476
461
477
@end
0 commit comments