开发者

C++ equivalent to Python's log library

开发者 https://www.devze.com 2023-02-03 11:14 出处:网络
开发者_高级运维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/

开发者_高级运维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.

0

精彩评论

暂无评论...
验证码 换一张
取 消