1.5.3. Qt

Qt is a programming framework. It supports debugging output and unit testing with a testing library. Currently (as of 11/2007) it is only possible to redirect debugging or information messages like qWarning() or qDebug(). The output from the testing library is hardcoded to standard output or a regular file.


  Logger::initLogging("log4sendpp_qt_test", TcpIpAppender::gethostname());
  Logger &logger = Logger::logger();
  logger.setLevel(Logger::All);
  QtListener listener;

See log4sendpp/tests/log4sendpp_qt.cpp for the main part of the according test files.

Location information from Qt come with different logging levels depending on the importance of the parts.