# How to get node red logs as a text file

**URL:** <https://discourse.nodered.org/t/how-to-get-node-red-logs-as-a-text-file/22904>\
**Category:** General\
**Created:** [10 March 2020 06:26 UTC](https://discourse.nodered.org/t/how-to-get-node-red-logs-as-a-text-file/22904 "2020-03-10T06:26:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DemonKing](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@DemonKing](https://discourse.nodered.org/u/DemonKing)\
**Post date:** [10 March 2020 06:26 UTC](https://discourse.nodered.org/t/how-to-get-node-red-logs-as-a-text-file/22904/1 "2020-03-10T06:26:39Z")

</div>

Hi all  
I can saw the logs in command promt but i want that logs as a file fo debugging

please let me know how to do that  
thanks

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [10 March 2020 06:50 UTC](https://discourse.nodered.org/t/how-to-get-node-red-logs-as-a-text-file/22904/2 "2020-03-10T06:50:35Z")

</div>

How are you running Node-RED?

---

<div class="post-metadata">

**Author:** ![DemonKing](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@DemonKing](https://discourse.nodered.org/u/DemonKing)\
**Post date:** [10 March 2020 08:34 UTC](https://discourse.nodered.org/t/how-to-get-node-red-logs-as-a-text-file/22904/3 "2020-03-10T08:34:06Z")

</div>

by using node-red command

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [10 March 2020 08:36 UTC](https://discourse.nodered.org/t/how-to-get-node-red-logs-as-a-text-file/22904/4 "2020-03-10T08:36:07Z")

</div>

Using what operating system?

If you are just typing the command `node-red` to run it, then you have to manually redirect its log output to a file.

For example:

`node-red > node-red-log.txt`

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [9 May 2020 08:36 UTC](https://discourse.nodered.org/t/how-to-get-node-red-logs-as-a-text-file/22904/5 "2020-05-09T08:36:14Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
