Logger: extracted formatLogLine() from formatMessage()
Logger: refactoring
typo