mirror of
https://github.com/status-im/instabug-reactnative.git
synced 2025-03-03 14:40:54 +00:00
✨ Report console logs with log levels.
This commit is contained in:
parent
42457643c2
commit
5d4c58cbdd
@ -455,7 +455,23 @@ RCTLogFunction InstabugReactLogFunction = ^(
|
|||||||
|
|
||||||
va_list arg_list;
|
va_list arg_list;
|
||||||
|
|
||||||
IBGNSLog(compeleteLog, arg_list);
|
switch(level) {
|
||||||
|
case RCTLogLevelTrace:
|
||||||
|
IBGNSLogWithLevel(compeleteLog, arg_list, IBGLogLevelTrace);
|
||||||
|
break;
|
||||||
|
case RCTLogLevelInfo:
|
||||||
|
IBGNSLogWithLevel(compeleteLog, arg_list, IBGLogLevelInfo);
|
||||||
|
break;
|
||||||
|
case RCTLogLevelWarning:
|
||||||
|
IBGNSLogWithLevel(compeleteLog, arg_list, IBGLogLevelWarning);
|
||||||
|
break;
|
||||||
|
case RCTLogLevelError:
|
||||||
|
IBGNSLogWithLevel(compeleteLog, arg_list, IBGLogLevelError);
|
||||||
|
break;
|
||||||
|
case RCTLogLevelFatal:
|
||||||
|
IBGNSLogWithLevel(compeleteLog, arg_list, IBGLogLevelFatal);
|
||||||
|
break;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user