Apache log4cxx  Version 0.12.0
log4cxx::qt Namespace Reference

Functions

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

Function Documentation

◆ messageHandler()

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().