19 #include <QtCore/QObject>
20 #include <QtCore/QString>
21 #include <QtCore/QTextStream>
41 Log(MessageType msgType);
64 static void registerMetaTypes();
67 Log& operator=(
const Log& other);
88 void setAutoDetach(
bool b);
114 template <
typename T>
117 return *
this << QString(
"0x%1").arg(reinterpret_cast<std::size_t>(ptr), 0, 16);
QTTOOLS_CORE_EXPORT void attachGlobalLogHandler(AbstractLogHandler *handler)
QTTOOLS_CORE_EXPORT Log infoLog()
MessageType
Types of logging message, with increasing severity.
Definition: log.h:31
Dispatches a logging message as a Qt signal.
Definition: log.h:98
#define QTTOOLS_CORE_EXPORT
Definition: core.h:27
Definition: grid_numbering.cpp:19
QTTOOLS_CORE_EXPORT Log criticalLog()
Log & operator<<(bool)
Write the boolean t to the log stream and return a reference to the stream.
Definition: log.cpp:141
QTTOOLS_CORE_EXPORT Log debugLog()
TEXT_STREAM & operator<<(TEXT_STREAM &os, const FixedArray< T, S > &coords)
Definition: fixed_array.h:201
Provides an easy-to-use output stream for logging.
Definition: log.h:28
QTTOOLS_CORE_EXPORT Log fatalLog()
QTTOOLS_CORE_EXPORT void detachGlobalLogHandler(AbstractLogHandler *handler)
QTTOOLS_CORE_EXPORT Log warningLog()
Abstract base class of all logging message handlers.
Definition: log.h:82