ObjectivelyMVC 0.1.0
Object oriented MVC framework for OpenGL, SDL2 and GNU C
Macros
Log.h File Reference

View logging facilities via SDL_Log. More...

#include <SDL_log.h>

Go to the source code of this file.

Macros

#define LOG_CATEGORY_MVC   (SDL_LOG_CATEGORY_CUSTOM + 69)
 
#define MVC_LogCritical(fmt, ...)    SDL_LogCritical(LOG_CATEGORY_MVC, "%s:%s: "fmt, _Class()->def.name, __func__, ## __VA_ARGS__)
 
#define MVC_LogDebug(fmt, ...)    SDL_LogDebug(LOG_CATEGORY_MVC, "%s:%s: "fmt, _Class()->def.name, __func__, ## __VA_ARGS__)
 
#define MVC_LogEnabled(priority)    (SDL_LogGetPriority(LOG_CATEGORY_MVC) <= priority)
 
#define MVC_LogError(fmt, ...)    SDL_LogError(LOG_CATEGORY_MVC, "%s:%s: "fmt, _Class()->def.name, __func__, ## __VA_ARGS__)
 
#define MVC_LogInfo(fmt, ...)    SDL_LogInfo(LOG_CATEGORY_MVC, "%s:%s: "fmt, _Class()->def.name, __func__, ## __VA_ARGS__)
 
#define MVC_LogMessage(priority, fmt, ...)    SDL_LogMessage(LOG_CATEGORY_MVC, priority, "%s:%s "fmt, _Class()->def.name, __func__, ## __VA_ARGS__)
 
#define MVC_LogSetPriority(priority)   SDL_LogSetPriority(LOG_CATEGORY_MVC, priority)
 
#define MVC_LogVerbose(fmt, ...)    SDL_LogVerbose(LOG_CATEGORY_MVC, "%s:%s: "fmt, _Class()->def.name, __func__, ## __VA_ARGS__)
 
#define MVC_LogWarn(fmt, ...)    SDL_LogWarn(LOG_CATEGORY_MVC, "%s:%s: "fmt, _Class()->def.name, __func__, ## __VA_ARGS__)
 

Detailed Description

View logging facilities via SDL_Log.

Definition in file Log.h.

Macro Definition Documentation

◆ LOG_CATEGORY_MVC

#define LOG_CATEGORY_MVC   (SDL_LOG_CATEGORY_CUSTOM + 69)

Definition at line 33 of file Log.h.

◆ MVC_LogCritical

#define MVC_LogCritical (   fmt,
  ... 
)     SDL_LogCritical(LOG_CATEGORY_MVC, "%s:%s: "fmt, _Class()->def.name, __func__, ## __VA_ARGS__)

Definition at line 58 of file Log.h.

◆ MVC_LogDebug

#define MVC_LogDebug (   fmt,
  ... 
)     SDL_LogDebug(LOG_CATEGORY_MVC, "%s:%s: "fmt, _Class()->def.name, __func__, ## __VA_ARGS__)

Definition at line 46 of file Log.h.

◆ MVC_LogEnabled

#define MVC_LogEnabled (   priority)     (SDL_LogGetPriority(LOG_CATEGORY_MVC) <= priority)

Definition at line 37 of file Log.h.

◆ MVC_LogError

#define MVC_LogError (   fmt,
  ... 
)     SDL_LogError(LOG_CATEGORY_MVC, "%s:%s: "fmt, _Class()->def.name, __func__, ## __VA_ARGS__)

Definition at line 55 of file Log.h.

◆ MVC_LogInfo

#define MVC_LogInfo (   fmt,
  ... 
)     SDL_LogInfo(LOG_CATEGORY_MVC, "%s:%s: "fmt, _Class()->def.name, __func__, ## __VA_ARGS__)

Definition at line 49 of file Log.h.

◆ MVC_LogMessage

#define MVC_LogMessage (   priority,
  fmt,
  ... 
)     SDL_LogMessage(LOG_CATEGORY_MVC, priority, "%s:%s "fmt, _Class()->def.name, __func__, ## __VA_ARGS__)

Definition at line 40 of file Log.h.

◆ MVC_LogSetPriority

#define MVC_LogSetPriority (   priority)    SDL_LogSetPriority(LOG_CATEGORY_MVC, priority)

Definition at line 35 of file Log.h.

◆ MVC_LogVerbose

#define MVC_LogVerbose (   fmt,
  ... 
)     SDL_LogVerbose(LOG_CATEGORY_MVC, "%s:%s: "fmt, _Class()->def.name, __func__, ## __VA_ARGS__)

Definition at line 43 of file Log.h.

◆ MVC_LogWarn

#define MVC_LogWarn (   fmt,
  ... 
)     SDL_LogWarn(LOG_CATEGORY_MVC, "%s:%s: "fmt, _Class()->def.name, __func__, ## __VA_ARGS__)

Definition at line 52 of file Log.h.