remove newlines from logger