Fixed Clientlog file recreation when writing into the Chatlog
Adjusted last commit to the style guidelines