In windows how to log only tcp recived data in file with data recieved time

In Node-red I am recieving node-red data from TCP. I wanted to log the data recieved and the time. How can I log this in windows.

A debug node set to send to the console is the simplest way to log the data, unless that's not what you mean

What kind of log? just visual? to a file or db?

Node-RED can do any of these and more.

For the timestamp, that is also easy. The change node has "timestamp" as one of the options so you can simply add a timestamp to a convenient property of the received message.