# log message in file

**URL:** <https://forum.knime.com/t/log-message-in-file/76617>\
**Category:** KNIME Analytics Platform\
**Created:** [January 17, 2024, 1:39pm UTC](https://forum.knime.com/t/log-message-in-file/76617 "2024-01-17T13:39:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Davood](https://forum-cdn.knime.com/user_avatar/forum.knime.com/davood/32/61889_2.png) [@Davood](https://forum.knime.com/u/Davood)\
**Post date:** [January 17, 2024, 1:39pm UTC](https://forum.knime.com/t/log-message-in-file/76617/1 "2024-01-17T13:39:43Z")

</div>

Hello.  
How can I log a message or result in a logfile in workflow?

---

<div class="post-metadata">

**Author:** ![takbb](https://forum-cdn.knime.com/user_avatar/forum.knime.com/takbb/32/57077_2.png) [@takbb](https://forum.knime.com/u/takbb)\
**Post date:** [January 17, 2024, 8:10pm UTC](https://forum.knime.com/t/log-message-in-file/76617/2 "2024-01-17T20:10:57Z")

</div>

Hi @Davood,

There isn’t a dedicated node for writing such log messages to my knowledge.

CSV Writer could be used for the purpose. To write a message, e.g. from a flow variable, you could use Variable to Table Row and then send that table to a CSV Writer, with it set to append.

If that seems like extra effort every time you want to write a simple message, it could be wrapped up into a component for ease of re-use.

An advantage of going down the component route, is that things like date/time stamp could be automatically written too without you having to add this in your workflow.

---

<div class="post-metadata">

**Author:** ![Davood](https://forum-cdn.knime.com/user_avatar/forum.knime.com/davood/32/61889_2.png) [@Davood](https://forum.knime.com/u/Davood)\
**Post date:** [January 18, 2024, 8:35am UTC](https://forum.knime.com/t/log-message-in-file/76617/3 "2024-01-18T08:35:54Z")

</div>

Thank you for guidance. 💞

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [April 17, 2024, 8:36am UTC](https://forum.knime.com/t/log-message-in-file/76617/4 "2024-04-17T08:36:40Z")

</div>

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