logging of chat messages