In most of the open source C++ code I can see that a logger like the Google logging library glog is used. But what are the advantages? The only advantages that I could find:
- Logging is thread safe, so preferred for multi threading
- You can choose severity levels
So If I am not doing multi threading and I don't need severity levels, is std::cout safe to use or should I still use a logger? Why?