Changed logMessage into logInfo/logWarning/logError
OCD newline.
Refactored MessageFormatter and renamed 'chat' to 'chan'