# Node-RED in Docker Logging

**URL:** <https://discourse.nodered.org/t/node-red-in-docker-logging/55195>\
**Category:** General\
**Tags:** docker\
**Created:** [14 December 2021 17:16 UTC](https://discourse.nodered.org/t/node-red-in-docker-logging/55195 "2021-12-14T17:16:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tmichaeltx](https://avatars.discourse-cdn.com/v4/letter/t/73ab20/32.png) [@tmichaeltx](https://discourse.nodered.org/u/tmichaeltx)\
**Post date:** [14 December 2021 17:16 UTC](https://discourse.nodered.org/t/node-red-in-docker-logging/55195/1 "2021-12-14T17:16:39Z")

</div>

I recently had an issue where I needed to look at the log information for my flows during a restart. Having changed the logging level to trace, I found that my view of the console messages only showed so many lines. As a result, I was unable to see the entire refresh sequence of messages.

Is there a straightforward way to get the Node-RED logging into a file when it is running inside of the standard docker container?

For my other issue, what I did get was sufficient to find my issue, but had it been earlier in the sequence, I am not sure I would have had access to see it.

---

<div class="post-metadata">

**Author:** ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)\
**Post date:** [14 December 2021 21:07 UTC](https://discourse.nodered.org/t/node-red-in-docker-logging/55195/2 "2021-12-14T21:07:54Z")

</div>

if you add a `-f` to the docker logs line it will stream it continuously and you can direct that to a file

```auto
docker logs -f [name of container] > log.out

```

or if you look in `/var/lib/docker/containers` there will be a directory that starts with the same as the output of `docker ps` in there you should find a file that has the whole output of the container's stderr/stdout

---

<div class="post-metadata">

**Author:** ![tmichaeltx](https://avatars.discourse-cdn.com/v4/letter/t/73ab20/32.png) [@tmichaeltx](https://discourse.nodered.org/u/tmichaeltx)\
**Post date:** [15 December 2021 21:38 UTC](https://discourse.nodered.org/t/node-red-in-docker-logging/55195/3 "2021-12-15T21:38:51Z")

</div>

Thanks for the pointer.

---

<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:** [29 December 2021 21:39 UTC](https://discourse.nodered.org/t/node-red-in-docker-logging/55195/4 "2021-12-29T21:39:40Z")

</div>

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