Aurore
A Switch-like interface for your app, on every screen
Loading...
Searching...
No Matches
logger.hpp File Reference
#include <fmt/chrono.h>
#include <fmt/format.h>
#include <ctime>
#include <mutex>
#include <string>
#include <aurore/core/event.hpp>
#include <aurore/core/time.hpp>

Go to the source code of this file.

Classes

class  aurore::Logger
 

Namespaces

namespace  aurore
 

Macros

#define AURORE_ERROR_COLOR   "[0;31m"
 
#define AURORE_WARNING_COLOR   "[0;33m"
 
#define AURORE_INFO_COLOR   "[0;34m"
 
#define AURORE_DEBUG_COLOR   "[0;32m"
 
#define AURORE_VERBOSE_COLOR   "[0;37m"
 
#define AURORE_LOG_ERROR(format, ...)   aurore::Logger::error("{}:{} " format, __FILE__, __LINE__, ##__VA_ARGS__)
 
#define AURORE_LOG_WARNING(format, ...)   aurore::Logger::warning("{}:{} " format, __FILE__, __LINE__, ##__VA_ARGS__)
 
#define AURORE_LOG_INFO(format, ...)   aurore::Logger::info("{}:{} " format, __FILE__, __LINE__, ##__VA_ARGS__)
 
#define AURORE_LOG_DEBUG(format, ...)   aurore::Logger::debug("{}:{} " format, __FILE__, __LINE__, ##__VA_ARGS__)
 
#define AURORE_LOG_VERBOSE(format, ...)   aurore::Logger::verbose("{}:{} " format, __FILE__, __LINE__, ##__VA_ARGS__)
 

Enumerations

enum class  aurore::LogLevel {
  aurore::LOG_ERROR = 0 , aurore::LOG_WARNING , aurore::LOG_INFO , aurore::LOG_DEBUG ,
  aurore::LOG_VERBOSE
}
 

Macro Definition Documentation

◆ AURORE_DEBUG_COLOR

#define AURORE_DEBUG_COLOR   "[0;32m"

◆ AURORE_ERROR_COLOR

#define AURORE_ERROR_COLOR   "[0;31m"

◆ AURORE_INFO_COLOR

#define AURORE_INFO_COLOR   "[0;34m"

◆ AURORE_LOG_DEBUG

#define AURORE_LOG_DEBUG (   format,
  ... 
)    aurore::Logger::debug("{}:{} " format, __FILE__, __LINE__, ##__VA_ARGS__)

◆ AURORE_LOG_ERROR

#define AURORE_LOG_ERROR (   format,
  ... 
)    aurore::Logger::error("{}:{} " format, __FILE__, __LINE__, ##__VA_ARGS__)

◆ AURORE_LOG_INFO

#define AURORE_LOG_INFO (   format,
  ... 
)    aurore::Logger::info("{}:{} " format, __FILE__, __LINE__, ##__VA_ARGS__)

◆ AURORE_LOG_VERBOSE

#define AURORE_LOG_VERBOSE (   format,
  ... 
)    aurore::Logger::verbose("{}:{} " format, __FILE__, __LINE__, ##__VA_ARGS__)

◆ AURORE_LOG_WARNING

#define AURORE_LOG_WARNING (   format,
  ... 
)    aurore::Logger::warning("{}:{} " format, __FILE__, __LINE__, ##__VA_ARGS__)

◆ AURORE_VERBOSE_COLOR

#define AURORE_VERBOSE_COLOR   "[0;37m"

◆ AURORE_WARNING_COLOR

#define AURORE_WARNING_COLOR   "[0;33m"