libqi-api
2.0.6.8
|
logging facilities (with rt support)
See qi::log Developer Guide for a global overview of the logging system.
More...
logging facilities (with rt support)
See qi::log Developer Guide for a global overview of the logging system.
How to use log:
#include <cstdlib> //for atexit #include <qi/log.hpp> void main() { // first init the log system qi::log::init(); atexit(qi::log::destroy); // c syntax qiLogInfo("foo.bar", "%s kick %s" , "foo", "bar"); qiLogInfo("foo.bar", "%s punch %s", "bar", "foo"); qiLogWarning("pif.paf", "pif kiss paf %d time", 42); // c++ syntax qiLogInfo("tic.tac") << "tic, " << "tac " << 42 << " times"; qiLogVerbose("foo.bar") << "bar punch " << "foo"; }