log message in file

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

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.

2 Likes

Thank you for guidance. :revolving_hearts:

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