Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • In the debug build, it might make sense for you to log something. Maybe. Are you sure you are qualified to determine what should be, and can be, logged, without too much overhead? Commented Jan 26, 2019 at 15:45
  • That's what log levels are for, no? Commented Jan 26, 2019 at 16:00
  • Not really. Or at least not completely. It's both a compile-time question (what logging is compiled in) and a run-time question (what logging is skipped / discarded). Commented Jan 26, 2019 at 16:18
  • related: See Logging for Libraries overview in this post (written from the .NET perspective). Commented Jan 26, 2019 at 22:11
  • Logging facades are kinda solution to the logging system mess of Java, as well as advanced library repository systems like Maven's and Gradles, with differeny libraries using different logging. C++ as such doesn't have a similar logging ecosystem. For Linux/Mac/Unix look into syslog. Commented Jan 27, 2019 at 15:29