# Flat text from msg.payload

**URL:** <https://discourse.nodered.org/t/flat-text-from-msg-payload/24759>\
**Category:** General\
**Created:** [13 April 2020 13:59 UTC](https://discourse.nodered.org/t/flat-text-from-msg-payload/24759 "2020-04-13T13:59:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![RogierQ](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rogierq/32/3211_2.png) [@RogierQ](https://discourse.nodered.org/u/RogierQ)\
**Post date:** [13 April 2020 13:59 UTC](https://discourse.nodered.org/t/flat-text-from-msg-payload/24759/1 "2020-04-13T13:59:32Z")

</div>

I would like to log different data that is send and received  
This sometimes contains arrays.

Is it possible to convert everything to flat text?  
So that the whole lines comes like text in my log file.  
Now i get [object Object] for example  
The problem is that the datastring differs every time

thanks

---

<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:** [13 April 2020 14:26 UTC](https://discourse.nodered.org/t/flat-text-from-msg-payload/24759/2 "2020-04-13T14:26:59Z")

</div>

Maybe this could be of use ?[https://flows.nodered.org/node/node-red-contrib-flogger](https://flows.nodered.org/node/node-red-contrib-flogger)

---

<div class="post-metadata">

**Author:** ![RogierQ](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rogierq/32/3211_2.png) [@RogierQ](https://discourse.nodered.org/u/RogierQ)\
**Post date:** [13 April 2020 14:38 UTC](https://discourse.nodered.org/t/flat-text-from-msg-payload/24759/3 "2020-04-13T14:38:27Z")

</div>

Cool that does it exactly!  
Only dont understand the loglevel, but i guess that is just a marker line in the log?

---

<div class="post-metadata">

**Author:** ![JGKK](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jgkk/32/18515_2.png) [@JGKK](https://discourse.nodered.org/u/JGKK)\
**Post date:** [13 April 2020 14:59 UTC](https://discourse.nodered.org/t/flat-text-from-msg-payload/24759/4 "2020-04-13T14:59:35Z")

</div>

Things i didn’t know i wanted 😍

---

<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:** [12 June 2020 14:59 UTC](https://discourse.nodered.org/t/flat-text-from-msg-payload/24759/5 "2020-06-12T14:59:42Z")

</div>

Closed on 12 June 2020 14:59 UTC

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