2021-06-20 18:46:41 +08:00
|
|
|
#ifndef SC_LOG_H
|
|
|
|
#define SC_LOG_H
|
|
|
|
|
|
|
|
#include "common.h"
|
2018-02-13 17:10:18 +08:00
|
|
|
|
|
|
|
#include <SDL2/SDL_log.h>
|
|
|
|
|
2021-10-28 00:43:47 +08:00
|
|
|
#include "options.h"
|
2021-06-20 18:46:41 +08:00
|
|
|
|
2019-02-09 19:05:39 +08:00
|
|
|
#define LOGV(...) SDL_LogVerbose(SDL_LOG_CATEGORY_APPLICATION, __VA_ARGS__)
|
2018-02-13 17:10:18 +08:00
|
|
|
#define LOGD(...) SDL_LogDebug(SDL_LOG_CATEGORY_APPLICATION, __VA_ARGS__)
|
|
|
|
#define LOGI(...) SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION, __VA_ARGS__)
|
|
|
|
#define LOGW(...) SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION, __VA_ARGS__)
|
|
|
|
#define LOGE(...) SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, __VA_ARGS__)
|
|
|
|
#define LOGC(...) SDL_LogCritical(SDL_LOG_CATEGORY_APPLICATION, __VA_ARGS__)
|
|
|
|
|
2021-06-20 18:46:41 +08:00
|
|
|
void
|
|
|
|
sc_set_log_level(enum sc_log_level level);
|
|
|
|
|
2021-06-20 18:49:45 +08:00
|
|
|
enum sc_log_level
|
|
|
|
sc_get_log_level(void);
|
|
|
|
|
2018-02-13 17:10:18 +08:00
|
|
|
#endif
|