Guitar
Classes | Macros | Variables
Logger.h File Reference
#include <chrono>
#include <string>
Include dependency graph for Logger.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Logger
 

Macros

#define LOG_RAW   0
 
#define LOG_DEFAULT   0x0001
 
#define LOG_STDERR   0x0002
 
#define LOG_BOTH   (LOG_DEFAULT | LOG_STDERR)
 
#define logprint(LEVEL, STR)   x_logger.x_logprint(__FILE__, __LINE__, LEVEL, STR)
 
#define logprintf(LEVEL, FMT, ...)   x_logger.x_logprintf(__FILE__, __LINE__, LEVEL, FMT, ##__VA_ARGS__)
 

Variables

Logger x_logger
 

Macro Definition Documentation

◆ LOG_BOTH

#define LOG_BOTH   (LOG_DEFAULT | LOG_STDERR)

◆ LOG_DEFAULT

#define LOG_DEFAULT   0x0001

◆ LOG_RAW

#define LOG_RAW   0

◆ LOG_STDERR

#define LOG_STDERR   0x0002

◆ logprint

#define logprint (   LEVEL,
  STR 
)    x_logger.x_logprint(__FILE__, __LINE__, LEVEL, STR)

◆ logprintf

#define logprintf (   LEVEL,
  FMT,
  ... 
)    x_logger.x_logprintf(__FILE__, __LINE__, LEVEL, FMT, ##__VA_ARGS__)

Variable Documentation

◆ x_logger

Logger x_logger
extern