Refactored string concatenation in logging