Apache log4cxx  Version 0.13.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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().