Implemented ChatSession and added log files.