qxLib
Classes | Macros
logger.h File Reference
#include <qx/logger/base_logger_stream.h>
#include <qx/patterns/singleton.h>
#include <memory>
#include <qx/logger/logger.inl>

Go to the source code of this file.

Classes

class  qx::logger
 Logger class. More...
 
class  qx::logger_singleton
 Default logger instance. More...
 

Macros

#define QX_LOG_C(category, eVerbosity, format, ...)
 Log with category. More...
 
#define QX_LOG(eVerbosity, format, ...)   QX_LOG_C(CatDefault, eVerbosity, format, ##__VA_ARGS__)
 Log message. More...
 

Detailed Description

Author
Khrapov
Date
17.06.2019

Definition in file logger.h.

Macro Definition Documentation

◆ QX_LOG

#define QX_LOG (   eVerbosity,
  format,
  ... 
)    QX_LOG_C(CatDefault, eVerbosity, format, ##__VA_ARGS__)

Log message.

Parameters
eVerbosity- message verbosity
format- format string
...- additional args for formatting

Definition at line 38 of file logger.h.

◆ QX_LOG_C

#define QX_LOG_C (   category,
  eVerbosity,
  format,
  ... 
)
Value:
QX_LOGGER_INSTANCE \
.log(eVerbosity, format, category, QX_SHORT_FILE, qx::to_string(__FUNCTION__), __LINE__, ##__VA_ARGS__)
#define QX_SHORT_FILE
Cuts full absolute path to the file name only ex: "C:\folder1\foler2\file.h" => "file....
Definition: common.h:62

Log with category.

Parameters
category- category to be used to manage output
eVerbosity- message verbosity
format- format string
...- additional args for formatting

Definition at line 27 of file logger.h.