# Redirect Legato logs to the console USB port

**URL:** <https://forum.sierrawireless.com/t/redirect-legato-logs-to-the-console-usb-port/19550>\
**Category:** WP Series\
**Created:** [February 28, 2020, 2:59pm UTC](https://forum.sierrawireless.com/t/redirect-legato-logs-to-the-console-usb-port/19550 "2020-02-28T14:59:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PaulM](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/paulm/32/5015_2.png) [@PaulM](https://forum.sierrawireless.com/u/PaulM)\
**Post date:** [February 28, 2020, 2:59pm UTC](https://forum.sierrawireless.com/t/redirect-legato-logs-to-the-console-usb-port/19550/1 "2020-02-28T14:59:46Z")

</div>

Hello,

I’m trying to display the logs from Legato (the output of _logread_) on my computer, without having to ssh on the mangOH Yellow.

I was wondering if it was possible to redirect these logs to the console USB port of the mangOH and read them on my PC with cutecom or something similar ?

So far the only thing coming from this USB port are the logs from the OS when it boots.

```auto
root@swi-mdm9x28-wp:~# cm info all
Device: WP7702
IMEI: 352653090187212
IMEISV: 4
FSN: 4L933470110310
Firmware Version: SWI9X06Y_02.32.02.00 c2e98c jenkins 2019/08/30 07:28:21
Bootloader Version: SWI9X06Y_02.32.02.00 c2e98c jenkins 2019/08/30 07:28:21
MCU Version: 002.013
PRI Part Number (PN): 9909138
PRI Revision: 001.001 
Carrier PRI Name: SIERRA
Carrier PRI Revision: 001.027_000
SKU: 1104405
Last Reset Cause: Power Down
Resets Count: Expected: 156	Unexpected: 0

```

Thank you !

---

<div class="post-metadata">

**Author:** ![lotam](https://avatars.discourse-cdn.com/v4/letter/l/958977/32.png) [@lotam](https://forum.sierrawireless.com/u/lotam)\
**Post date:** [March 2, 2020, 5:39am UTC](https://forum.sierrawireless.com/t/redirect-legato-logs-to-the-console-usb-port/19550/2 "2020-03-02T05:39:52Z")

</div>

Hi Paul,

As you are accessing console port, you can simply type “logread -f” to print the running Legato log there.

Or if you don’t want to login and type the command everytime, you may add below in boot script to print the log automatically…

> logread -f \> /dev/console &

However, reminded if too many logs print it may disturb the console and less convenient to use.  
Thx

---

<div class="post-metadata">

**Author:** ![PaulM](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/paulm/32/5015_2.png) [@PaulM](https://forum.sierrawireless.com/u/PaulM)\
**Post date:** [March 2, 2020, 8:56am UTC](https://forum.sierrawireless.com/t/redirect-legato-logs-to-the-console-usb-port/19550/3 "2020-03-02T08:56:26Z")

</div>

Hi !  
Thank you, your solution worked ! 🙂  
What do you mean when you say it might disturb the console ?

Have a good day !

---

<div class="post-metadata">

**Author:** ![lotam](https://avatars.discourse-cdn.com/v4/letter/l/958977/32.png) [@lotam](https://forum.sierrawireless.com/u/lotam)\
**Post date:** [March 2, 2020, 9:58am UTC](https://forum.sierrawireless.com/t/redirect-legato-logs-to-the-console-usb-port/19550/4 "2020-03-02T09:58:14Z")

</div>

Hi Paul,  
Thanks for confirmation it works for you.

Just my personal experience, because I usually print log and use the console simultaneously, but sometime Legato prints many logs (especially with debug level) so I can hardly use console command…

Anyway, it depends on your use case, it would be fine if you want to dedicate that console USB for log capture (boot / legato log) and not using it as console at the same time.

Thx
