An open API service indexing awesome lists of open source software.

https://github.com/annihil/react-native-log-ios

React Native iOS standalone logger
https://github.com/annihil/react-native-log-ios

ios log logger macos osx react-native

Last synced: 12 months ago
JSON representation

React Native iOS standalone logger

Awesome Lists containing this project

README

          

# React Native Log iOS

[![npm](https://img.shields.io/npm/v/react-native-log-ios.svg)](https://www.npmjs.com/package/react-native-log-ios)
[![license](https://img.shields.io/github/license/annihil/react-native-log-ios.svg)]()


React Native Log iOS logo

This standalone script replace the broken `react-native log-ios`.
It will watch the Mac OS X system log file and filter only the lines concerning your XCode project.
You will be able to see the `console.log`, `console.warn` and `console.error` outputs.

## Installation

```
npm i -g react-native-log-ios
```

## Usage

Important: You will need to provide the **FacebookDisplayName** to the command - in some cases it is different from the Xcode project name, or the bundle name. You will find this "FacebookDisplayName" in Info.plist.

```
react-native-log-ios
```

```
react-native-log-ios --help
```

## Result

Line format is the following: `HH:mm:ss, `

```
12:02:33, Initializing (parent: , executor: (null))
12:02:33, Running application Foobar ({
initialProps = {
};
rootTag = 1;
})
12:02:33, Running application "Foobar" with appParams: {"rootTag":1,"initialProps":{}}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF
12:02:39, Hello world!
```

## Versioning

React Native Log iOS uses [SemVer](http://semver.org/) for versioning.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file
for details.