I'm looking at adding logging to an application, and I'm considering using Kiwi syslogd and a freeware library (clSyslog) to send logging messages to the daemon. I briefly looked at log4c, and found compiling it with VC++ would take me more time than I had.
What tools do you use and recommend for logging messages?
Rolled my own -- this is especially useful for cross-platform stuff. You can take a look at Boost.Log . Note this was rejected when submitted and hence not part of the standard distribution. AFAIK, the author had plans to rewrite this though.
In C++ I use a lot of log4cxx .. Don't see why it's a problem to compile, works like champ. It brings lots of benefits. To name just a few - you can re-direct your log statements into syslog or windows event log without ever touching your code base - just change configuration.
I've used John Torjo's logging framework (version 1 - not 2) before. It worked very well, so I presume the second version will be as well.
我是NLog的巨大粉丝http://www.nlog-project.org/
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.