Change Logger to StringBuilder