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