Event logging with timeStamp

I am trying to create event log with time stamp. Can anyone suggest correct flow to display values with timestamping.

Perhaps this post gives you a starting point

Please don't post long text without wrapping in back-ticks.