adds log-ios and log-android cli commands

Summary:
solves first part of #8186
Closes https://github.com/facebook/react-native/pull/8352

Differential Revision: D3475905

Pulled By: mkonicek

fbshipit-source-id: 99f6aa15b92ba3192fa0b812d369bd7020469573
This commit is contained in:
Vitaly Gorodetsky
2016-06-23 07:58:23 -07:00
committed by Facebook Github Bot 2
parent fe55dd1a9a
commit 39f524d8e5
4 changed files with 136 additions and 2 deletions
+4 -2
View File
@@ -54,9 +54,11 @@ YellowBoxes can be disabled during development by using `console.disableYellowBo
## Accessing logs
To view detailed logs on iOS, open your app in Xcode, then Build and Run your app on a device or the iPhone Simulator. The console should appear automatically after the app launches. If your app is failing to build, check the Issues Navigator in Xcode.
Run `react-native log-ios` in a terminal to display the logs for an iOS app running on a device or a simulator.
Run `adb logcat *:S ReactNative:V ReactNativeJS:V` in a terminal to display the logs for an Android app running on a device or an emulator.
You can also view the iOS logs in Xcode: open your app in Xcode, then Build and Run your app on a device or the iPhone Simulator. The console should appear automatically after the app launches. If your app is failing to build, check the Issues Navigator in Xcode.
Run `react-native log-android` in a terminal to display the logs for an Android app running on a device or an emulator.
## Chrome Developer Tools