Apache Log4cxx  Version 1.5.0
Loading...
Searching...
No Matches
log4cxx::qt Namespace Reference

Classes

class  Configuration

Functions

LOG4CXX_EXPORT void messageHandler (QtMsgType type, const QMessageLogContext &context, const QString &message)
 The messageHandler function is a log4cxx replacement of the standard Qt message handler.

Function Documentation

◆ messageHandler()

LOG4CXX_EXPORT void log4cxx::qt::messageHandler ( QtMsgType type,
const QMessageLogContext & context,
const QString & message )

The messageHandler function is a log4cxx replacement of the standard Qt message handler.

Use this function as follows: qInstallMessageHandler( log4cxx::qt::messageHandler );

Note that similar to Qt, upon receipt of a fatal message this calls std::abort().