Skip to content

Instantly share code, notes, and snippets.

@andrey-skl
Created November 16, 2016 14:36
Show Gist options
  • Star 13 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save andrey-skl/61490dbc3269d89e4ac2e310fe21c554 to your computer and use it in GitHub Desktop.
Save andrey-skl/61490dbc3269d89e4ac2e310fe21c554 to your computer and use it in GitHub Desktop.
How to enable logging in production build of React Native app
...
#import "RCTLog.h"
...
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
RCTSetLogThreshold(RCTLogLevelInfo);
...
@dchersey
Copy link

dchersey commented Mar 4, 2018

This is awesome ... so simple! Note in later versions of React import is

#import <React/RCTLog.h>

@Eyesonly88
Copy link

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment