33 #define QS_LOG_VERSION "2.0b3" 44 static void destroyInstance();
45 static Level levelFromLogMessage(
const QString& logMessage,
bool* conversionSucceeded = 0);
52 void setLoggingLevel(
Level newLevel);
54 Level loggingLevel()
const;
80 void enqueueWrite(
const QString& message,
Level level);
81 void write(
const QString& message,
Level level);
92 #define QLOG_TRACE() \ 93 if (QsLogging::Logger::instance().loggingLevel() > QsLogging::TraceLevel) {} \ 94 else QsLogging::Logger::Helper(QsLogging::TraceLevel).stream() << __FILE__ << '@' << __LINE__ 95 #define QLOG_DEBUG() \ 96 if (QsLogging::Logger::instance().loggingLevel() > QsLogging::DebugLevel) {} \ 97 else QsLogging::Logger::Helper(QsLogging::DebugLevel).stream() << __FILE__ << '@' << __LINE__ 99 if (QsLogging::Logger::instance().loggingLevel() > QsLogging::InfoLevel) {} \ 100 else QsLogging::Logger::Helper(QsLogging::InfoLevel).stream() << __FILE__ << '@' << __LINE__ 101 #define QLOG_WARN() \ 102 if (QsLogging::Logger::instance().loggingLevel() > QsLogging::WarnLevel) {} \ 103 else QsLogging::Logger::Helper(QsLogging::WarnLevel).stream() << __FILE__ << '@' << __LINE__ 104 #define QLOG_ERROR() \ 105 if (QsLogging::Logger::instance().loggingLevel() > QsLogging::ErrorLevel) {} \ 106 else QsLogging::Logger::Helper(QsLogging::ErrorLevel).stream() << __FILE__ << '@' << __LINE__ 107 #define QLOG_FATAL() \ 108 if (QsLogging::Logger::instance().loggingLevel() > QsLogging::FatalLevel) {} \ 109 else QsLogging::Logger::Helper(QsLogging::FatalLevel).stream() << __FILE__ << '@' << __LINE__ 111 #ifdef QS_LOG_DISABLE
QSharedPointer< Destination > DestinationPtr
Definition: QsLogDest.h:55
#define QSLOG_SHARED_OBJECT
Definition: QsLogDest.h:39
Level
Definition: QsLogLevel.h:31
The helper forwards the streaming to QDebug and builds the final log message.
Definition: QsLog.h:58
Helper(Level logLevel)
Definition: QsLog.h:61
QDebug & stream()
Definition: QsLog.h:65