1--- 2title: Viewing logs 3--- 4 5import { Terminal } from '~/ui/components/Snippet'; 6 7Writing to the logs in a React Native app works just like in the browser: use `console.log`, `console.warn` and `console.error`. 8 9## Console logs 10 11When you run `npx expo start` and connect a device, console logs will show up in the terminal process. These logs are sent from the runtime to Expo CLI over web sockets, meaning the results are lower fidelity than connecting dev tools directly to the engine. 12 13You can view **high fidelity** logs and use advanced logging functions like `console.table` by creating a _development build_ with [Hermes](/guides/using-hermes), and [connecting the inspector](/guides/using-hermes#javascript-inspector-for-hermes). 14 15## Native logs 16 17You can view native runtime logs in Xcode and Android Studio by compiling the native app locally. Learn more in the [native debugging guide](/workflow/debugging#native-debugging). 18 19## System logs 20 21While it's usually not necessary, if you want to see logs for everything happening on your device, even the logs from other apps and the OS itself, you can use the following commands: 22 23<Terminal 24 cmd={[ 25 '# Show system logs for an Android device with adb logcat', 26 '$ npx react-native log-android', 27 '# Show system logs for an iOS device', 28 '$ npx react-native log-ios', 29 ]} 30/> 31