LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
QsLog.h File Reference
#include "QsLogDest.h"
#include <QDebug>
#include <QString>
#include <iostream>
#include "QsLog_export.h"

Go to the source code of this file.

Classes

class  QsLogging::Logger
 
class  QsLogging::Logger::Helper
 The helper forwards the streaming to QDebug and builds the final log message. More...
 

Namespaces

namespace  QsLogging
 

Macros

#define QLOG_TRACE()
 Logging macros: define QS_LOG_LINE_NUMBERS to get the file and line number in the log output.
 
#define QLOG_DEBUG()
 
#define QLOG_INFO()
 
#define QLOG_WARN()
 
#define QLOG_ERROR()
 
#define QLOG_FATAL()    QsLogging::Logger::Helper(QsLogging::FatalLevel, logger.zone()).stream()
 

Enumerations

enum  QsLogging::Level {
  QsLogging::TraceLevel = 0 , QsLogging::DebugLevel , QsLogging::InfoLevel , QsLogging::WarnLevel ,
  QsLogging::ErrorLevel , QsLogging::FatalLevel
}
 

Functions

LIMA_COMMONQSLOG_EXPORT QDebug & QsLogging::operator<< (QDebug &qd, const std::string &str)
 

Macro Definition Documentation

◆ QLOG_DEBUG

#define QLOG_DEBUG ( )
Value:
if( logger.loggingLevel() > QsLogging::DebugLevel ){} \
The helper forwards the streaming to QDebug and builds the final log message.
Definition QsLog.h:105
@ DebugLevel
Definition QsLog.h:49

Definition at line 144 of file QsLog.h.

◆ QLOG_ERROR

#define QLOG_ERROR ( )
Value:
if( logger.loggingLevel() > QsLogging::ErrorLevel ){} \
@ ErrorLevel
Definition QsLog.h:52

Definition at line 153 of file QsLog.h.

◆ QLOG_FATAL

#define QLOG_FATAL ( )     QsLogging::Logger::Helper(QsLogging::FatalLevel, logger.zone()).stream()

Definition at line 156 of file QsLog.h.

◆ QLOG_INFO

#define QLOG_INFO ( )
Value:
if( logger.loggingLevel() > QsLogging::InfoLevel ){} \
@ InfoLevel
Definition QsLog.h:50

Definition at line 147 of file QsLog.h.

◆ QLOG_TRACE

#define QLOG_TRACE ( )
Value:
if( logger.loggingLevel() > QsLogging::TraceLevel ){} \
@ TraceLevel
Definition QsLog.h:48

Logging macros: define QS_LOG_LINE_NUMBERS to get the file and line number in the log output.

Definition at line 141 of file QsLog.h.

◆ QLOG_WARN

#define QLOG_WARN ( )
Value:
if( logger.loggingLevel() > QsLogging::WarnLevel ){} \
@ WarnLevel
Definition QsLog.h:51

Definition at line 150 of file QsLog.h.