First of all, you should use StringBuilder instead. Second of all, this is not related to the MDLogger refactor, pull it out.