# Can the DEBUG information of node-red be logged?

**URL:** https://discourse.nodered.org/t/can-the-debug-information-of-node-red-be-logged/66205
**Category:** Dashboard
**Created:** [9 August 2022 07:02 UTC](https://discourse.nodered.org/t/can-the-debug-information-of-node-red-be-logged/66205 "2022-08-09T07:02:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![jpengwu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jpengwu/32/65941_2.png) [@jpengwu](https://discourse.nodered.org/u/jpengwu)
#### Post date: [9 August 2022 07:02 UTC](https://discourse.nodered.org/t/can-the-debug-information-of-node-red-be-logged/66205/1 "2022-08-09T07:02:08Z")

</div>

Can the DEBUG information of node-red be logged or stored in a file? I know that the file node can be used to store the file, but the file can only store the information of msg.payload. I want to store or record the entire msg information like DEBUG. log.

---

<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: [9 August 2022 07:10 UTC](https://discourse.nodered.org/t/can-the-debug-information-of-node-red-be-logged/66205/2 "2022-08-09T07:10:13Z")

</div>

look at the contrib node `node-red-contrib-flogger` - it was designed for that purpose.

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [9 August 2022 08:37 UTC](https://discourse.nodered.org/t/can-the-debug-information-of-node-red-be-logged/66205/3 "2022-08-09T08:37:02Z")

</div>

Yes it can, you can use a custom logger for that, see the docs for settings.js

---

<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: [8 September 2022 08:37 UTC](https://discourse.nodered.org/t/can-the-debug-information-of-node-red-be-logged/66205/4 "2022-09-08T08:37:53Z")

</div>

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