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