File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -805,6 +805,13 @@ const InstabugModule = {
805
805
}
806
806
} ,
807
807
808
+ /**
809
+ * Clear all Instabug logs, console logs, network logs and user steps.
810
+ */
811
+ clearLogs : function ( ) {
812
+ Instabug . clearLogs ( ) ;
813
+ } ,
814
+
808
815
/**
809
816
* Sets whether user steps tracking is visual, non visual or disabled.
810
817
* User Steps tracking is enabled by default if it's available
Original file line number Diff line number Diff line change @@ -481,6 +481,10 @@ - (dispatch_queue_t)methodQueue {
481
481
[IBGLog logError: log];
482
482
}
483
483
484
+ RCT_EXPORT_METHOD (clearLogs) {
485
+ [IBGLog clearAllLogs ];
486
+ }
487
+
484
488
RCT_EXPORT_METHOD (setSurveysEnabled:(BOOL )surveysEnabled) {
485
489
IBGSurveys.enabled = surveysEnabled;
486
490
}
You can’t perform that action at this time.
0 commit comments