Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
LoggerMacro.h File Reference

Go to the source code of this file.

Macros

#define ECS_LOGGER_MACRO_H__
 
#define DECLARE_LOGGER   Log::Logger* LOGGER;
 
#define DECLARE_STATIC_LOGGER   static Log::Logger* LOGGER;
 
#define DEFINE_LOGGER(name)   LOGGER = ECS::Log::Internal::GetLogger(name)
 
#define DEFINE_STATIC_LOGGER(clazz, name)   Log::Logger* clazz::LOGGER = ECS::Log::Internal::GetLogger(name)
 
#define DEFINE_STATIC_LOGGER_TEMPLATE(clazz, T, name)   template<class T> Log::Logger* clazz<T>::LOGGER = ECS::Log::Internal::GetLogger(name)
 
#define LOG_TRACE(format, ...)   LOGGER->LogTrace(format, ##__VA_ARGS__)
 
#define LOG_DEBUG(format, ...)   LOGGER->LogDebug(format, ##__VA_ARGS__)
 
#define LOG_INFO(format, ...)   LOGGER->LogInfo(format, ##__VA_ARGS__)
 
#define LOG_WARNING(format, ...)   LOGGER->LogWarning(format, ##__VA_ARGS__)
 
#define LOG_ERROR(format, ...)   LOGGER->LogError(format, ##__VA_ARGS__)
 
#define LOG_FATAL(format, ...)   LOGGER->LogFatal(format, ##__VA_ARGS__)
 

Macro Definition Documentation

◆ DECLARE_LOGGER

#define DECLARE_LOGGER   Log::Logger* LOGGER;

Definition at line 15 of file LoggerMacro.h.

◆ DECLARE_STATIC_LOGGER

#define DECLARE_STATIC_LOGGER   static Log::Logger* LOGGER;

Definition at line 16 of file LoggerMacro.h.

◆ DEFINE_LOGGER

#define DEFINE_LOGGER (   name)    LOGGER = ECS::Log::Internal::GetLogger(name)

Definition at line 18 of file LoggerMacro.h.

◆ DEFINE_STATIC_LOGGER

#define DEFINE_STATIC_LOGGER (   clazz,
  name 
)    Log::Logger* clazz::LOGGER = ECS::Log::Internal::GetLogger(name)

Definition at line 19 of file LoggerMacro.h.

◆ DEFINE_STATIC_LOGGER_TEMPLATE

#define DEFINE_STATIC_LOGGER_TEMPLATE (   clazz,
  T,
  name 
)    template<class T> Log::Logger* clazz<T>::LOGGER = ECS::Log::Internal::GetLogger(name)

Definition at line 20 of file LoggerMacro.h.

◆ ECS_LOGGER_MACRO_H__

#define ECS_LOGGER_MACRO_H__

File: include\Log\LoggerMacro.h.

Summary: Declares some macros to simply logging.

Definition at line 10 of file LoggerMacro.h.

◆ LOG_DEBUG

#define LOG_DEBUG (   format,
  ... 
)    LOGGER->LogDebug(format, ##__VA_ARGS__)

Definition at line 24 of file LoggerMacro.h.

◆ LOG_ERROR

#define LOG_ERROR (   format,
  ... 
)    LOGGER->LogError(format, ##__VA_ARGS__)

Definition at line 27 of file LoggerMacro.h.

◆ LOG_FATAL

#define LOG_FATAL (   format,
  ... 
)    LOGGER->LogFatal(format, ##__VA_ARGS__)

Definition at line 28 of file LoggerMacro.h.

◆ LOG_INFO

#define LOG_INFO (   format,
  ... 
)    LOGGER->LogInfo(format, ##__VA_ARGS__)

Definition at line 25 of file LoggerMacro.h.

◆ LOG_TRACE

#define LOG_TRACE (   format,
  ... 
)    LOGGER->LogTrace(format, ##__VA_ARGS__)

Definition at line 23 of file LoggerMacro.h.

◆ LOG_WARNING

#define LOG_WARNING (   format,
  ... 
)    LOGGER->LogWarning(format, ##__VA_ARGS__)

Definition at line 26 of file LoggerMacro.h.