Skip to content

Instantly share code, notes, and snippets.

@dutradotdev
Created April 20, 2023 14:36
Show Gist options
  • Save dutradotdev/5c4b14d0a49b6d03cf8d28174495541d to your computer and use it in GitHub Desktop.
Save dutradotdev/5c4b14d0a49b6d03cf8d28174495541d to your computer and use it in GitHub Desktop.
to log all console.log() in iOS release mode:
1. go to RCTLog (cmd shift o)
2. edit the method RCTLogTypeForLogLevel to:
static os_log_type_t RCTLogTypeForLogLevel(RCTLogLevel logLevel)
{
return OS_LOG_TYPE_ERROR;
}
3. rebuild the app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment