add the chat logging feature