开发者_高级运维With python, I can use logging library.
What do you use for the logging library with C++?
I personally like: http://code.google.com/p/google-glog/
You have many options though. This one is pretty similar to what you are used to.
We are heavyweight users of log4cxx. I can recommend it, though I am told that the current version won't build in Visual Studio 2010.
Maybe you will want to take a look at https://github.com/gabime/spdlog, they used a Python style syntax to compose log messages, and is pretty fast and safe.
You can also have a look at quill. It is using a python style syntax to log and has a similar API to the python logging module. It is stable and built for low latency as well.
精彩评论