Event logging with timeStamp

Perhaps this post gives you a starting point