简体   繁体   中英

Which Logging tools do you use for Windows?

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'm fond of Poco :: LogStream . It's a framework but it does have a really nice logging layer that acts like log4j and the like as far as configuration is concerned but uses the STL for implementation. Quite nice.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM