# Get the metro logs for React Native

**URL:** <https://community.dynatrace.com/t/get-the-metro-logs-for-react-native/39570>\
**Category:** Troubleshooting\
**Tags:** react-native, mobile-monitoring\
**Created:** [May 5, 2023, 8:48am UTC](https://community.dynatrace.com/t/get-the-metro-logs-for-react-native/39570 "2023-05-05T08:48:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yngwie\_lucero](https://avatars.discourse-cdn.com/v4/letter/y/3d9bf3/32.png) [@yngwie\_lucero](https://community.dynatrace.com/u/yngwie_lucero)\
**Post date:** [May 5, 2023, 8:48am UTC](https://community.dynatrace.com/t/get-the-metro-logs-for-react-native/39570/1 "2023-05-05T08:48:56Z")

</div>

**Why do we need the metro logs?**

When starting the React Native application with&nbsp;`react-native run-android`,&nbsp;`react-native run-ios`&nbsp;or&nbsp;`react-native start --reset-cache`. It will generate more logs in the terminal or command line. Some actions&nbsp;are generated after instrumentation of the code in the Metro transformer so it will be shown here. And will help in the investigation.

**How to get the metro logs?**  
As mentioned it will be found in the terminal or command line. See screenshot for reference.

 ![Screenshot 2023-05-02 at 5.22.02 pm.png](https://global.discourse-cdn.com/dynatrace/original/2X/a/a91652ba043a7fdbb9b9b19fa6b1fd4c7e1e5675.png)

_NOTE: You can copy/paste the logs from start to finish into a .txt file for easier investigation._

---

<div class="post-metadata">

**Author:** ![ChadTurner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/chadturner/32/161_2.png) [@ChadTurner](https://community.dynatrace.com/u/ChadTurner)\
**Post date:** [May 12, 2023, 7:33pm UTC](https://community.dynatrace.com/t/get-the-metro-logs-for-react-native/39570/2 "2023-05-12T19:33:05Z")

</div>

Thanks for sharing this
