Fix [SonarQube] Synchronized class StringBuffer should not be used
(Replace the synchronized class "StringBuffer" by an unsynchronized one
such as "StringBuilder")
Add logger