# Node-red Error Log File Location

**URL:** <https://discourse.nodered.org/t/node-red-error-log-file-location/83742>\
**Category:** General\
**Tags:** windows, log\
**Created:** [15 December 2023 11:19 UTC](https://discourse.nodered.org/t/node-red-error-log-file-location/83742 "2023-12-15T11:19:25Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [16 December 2023 07:17 UTC](https://discourse.nodered.org/t/node-red-error-log-file-location/83742/4 "2023-12-16T07:17:56Z")

</div>

Windows does not redirect console output to a log file by default

To capture output you need to redirect it:

```auto
node-red > node-red-log.log

```

This will create a new file each time you start node-red

So if you want to append:

```auto
node-red >> node-red-log.log

```

If you want separate logs:

```auto
node-red 2>node-red-error.log 1>node-red-log.log

```

Or if you like to mix outputs (stdout & stderr) in one single file you can use:

```auto
node-red > node-red.log 2>&1

```

---

_[View the full topic](https://discourse.nodered.org/t/node-red-error-log-file-location/83742)._
