I don&#x27;t know why you&#x27;re getting downvoted, because in my mind you&#x27;re right in some circumstances. More than once, I&#x27;ve found logging-related performance issues (i.e. logging is near the top of a profiling-driven performance optimization task).<p>One immediate example that comes to mind was code that had a bunch of logging statements like log.debug(boost::format(&quot;%d %x etc&quot;, param, param)). Normally the code would run with debug logging turned off, but there&#x27;s a pretty brutal problem there! The formatted string is always going to be processed, which the logger will immediately discard. Turns out one of these formatted strings actually took a fair bit of processing to generate and was hurting the system.