A Node-RED node to log and replay messages.
cd ~/.node-red
npm i node-red-simple-log
Set the log file name to the full path of the location you wish to store the log to. Any messages to arrive will then be timestamped and saved to the log.
Set the log file name to read. You can configure the node to replay at deploy time - or to wait for a button press.
Pressing the button at any other time will stop the replay - then next press will restart the log from the start.