# If console.log in NR module?

**URL:** <https://discourse.nodered.org/t/if-console-log-in-nr-module/31192>\
**Category:** General\
**Created:** [5 August 2020 18:25 UTC](https://discourse.nodered.org/t/if-console-log-in-nr-module/31192 "2020-08-05T18:25:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [5 August 2020 18:25 UTC](https://discourse.nodered.org/t/if-console-log-in-nr-module/31192/1 "2020-08-05T18:25:17Z")

</div>

If you have console.log() or such in code executed by NR, where does the out of the such end up? I have a NR module calling a class I previously created for just node, and wondered where console output directive end up? Not to be confused with node.log() of course.

---

<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:** [5 August 2020 18:31 UTC](https://discourse.nodered.org/t/if-console-log-in-nr-module/31192/2 "2020-08-05T18:31:58Z")

</div>

It will be written straight to the standard output of the Node-RED process. So it will end up in the same place as the Node-RED log output.

---

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [5 August 2020 18:34 UTC](https://discourse.nodered.org/t/if-console-log-in-nr-module/31192/3 "2020-08-05T18:34:22Z")

</div>

Humm... I am not seeing that. I have NR module, calling a node class I wrote separate of NR. I require the class, the given function executes, which has the console.log statement, but watching the node red log, I don't see it.

---

<div class="post-metadata">

**Author:** ![Nodi.Rubrum](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/nodi.rubrum/32/107482_2.png) [@Nodi.Rubrum](https://discourse.nodered.org/u/Nodi.Rubrum)\
**Post date:** [5 August 2020 18:37 UTC](https://discourse.nodered.org/t/if-console-log-in-nr-module/31192/4 "2020-08-05T18:37:58Z")

</div>

Ah, ok.... I was losing it in the volume of the stream. Cool! Thanks again.

---

<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:** [4 October 2020 18:38 UTC](https://discourse.nodered.org/t/if-console-log-in-nr-module/31192/5 "2020-10-04T18:38:05Z")

</div>

Closed on 4 October 2020 18:38 UTC

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