How to use

Add the log4qt source to the Qt project file by adding the following lineinclude(<unpackdir>/src/log4qt/log4qt.pri)

Include the Logger class, a layout and an appender class to configure Log4Qt to generate output. The example uses the ConsoleAppender with a TTCCLayoutinclude "log4qt/consoleappender.h"include "log4qt/logger.h"include "log4qt/ttcclayout.h"

Request a logger by either calling Log4Qt::Logger::logger or using LOG4QT_DECLARE_QCLASS_LOGGER// Request a logger and output "Hello World!"Log4Qt::Logger::logger(QLatin1String("My Logger"))->info("Hello World!");