# Location of log file( system log divert to Serial UART or RAW port)

**URL:** <https://forum.sierrawireless.com/t/location-of-log-file-system-log-divert-to-serial-uart-or-raw-port/14949>\
**Category:** IoT Modules\
**Created:** [January 9, 2019, 12:10pm UTC](https://forum.sierrawireless.com/t/location-of-log-file-system-log-divert-to-serial-uart-or-raw-port/14949 "2019-01-09T12:10:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hardikaghara1012](https://avatars.discourse-cdn.com/v4/letter/h/f4b2a3/32.png) [@hardikaghara1012](https://forum.sierrawireless.com/u/hardikaghara1012)\
**Post date:** [January 9, 2019, 12:10pm UTC](https://forum.sierrawireless.com/t/location-of-log-file-system-log-divert-to-serial-uart-or-raw-port/14949/1 "2019-01-09T12:10:15Z")

</div>

I want read log of device which is printing on log of developer studio.  
I want divert system log toward external serial UART.  
How can i do this one ?

---

<div class="post-metadata">

**Author:** ![mlw](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/mlw/32/3706_2.png) [@mlw](https://forum.sierrawireless.com/u/mlw)\
**Post date:** [January 9, 2019, 1:59pm UTC](https://forum.sierrawireless.com/t/location-of-log-file-system-log-divert-to-serial-uart-or-raw-port/14949/2 "2019-01-09T13:59:38Z")

</div>

@hardikaghara1012,

I presume you are talking about outputting the log from the WP application core running Legato to the UART? The console, by default, is output from UART 2, if you can see this then just rend ‘logread -f’ to it and the log file will be output as it is written to.

Regards

Matt

---

<div class="post-metadata">

**Author:** ![hardikaghara1012](https://avatars.discourse-cdn.com/v4/letter/h/f4b2a3/32.png) [@hardikaghara1012](https://forum.sierrawireless.com/u/hardikaghara1012)\
**Post date:** [January 10, 2019, 9:06am UTC](https://forum.sierrawireless.com/t/location-of-log-file-system-log-divert-to-serial-uart-or-raw-port/14949/3 "2019-01-10T09:06:34Z")

</div>

Here In my pc, I have 3 uart from SIerra module like UART0,UART1 and UART2.  
Which UART i can use ?  
In module side, where is it store ? in /dev or some where other?

---

<div class="post-metadata">

**Author:** ![mlw](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/mlw/32/3706_2.png) [@mlw](https://forum.sierrawireless.com/u/mlw)\
**Post date:** [January 10, 2019, 10:06am UTC](https://forum.sierrawireless.com/t/location-of-log-file-system-log-divert-to-serial-uart-or-raw-port/14949/4 "2019-01-10T10:06:59Z")

</div>

@hardikaghara1012,

There are only two UART’s on the WP, if you are using a mangOH board UART 2 (as per the PTS naming for WP76), which is the one you want, comes out of the USB port marked ‘CONSOLE’, this equates to pins 96, 97, 98 and 99 on the WP itself.

Logging is discussed here.

[https://docs.legato.io/latest/conceptsLogs.html](https://docs.legato.io/latest/conceptsLogs.html)

Regards

Matt
