add logging of chat messages