|
constexpr | LogCategory (int category) |
| Constructor from int.
|
|
constexpr | LogCategory (SDL_LogCategory category=SDL_LOG_CATEGORY_APPLICATION) |
| Constructor from SDL_LogCategory.
|
|
constexpr | operator int () |
| Conversion operator to int.
|
|
constexpr | operator SDL_LogCategory () |
| Conversion operator to SDL_LogCategory.
|
|
constexpr auto | operator<=> (const LogCategory &other) const =default |
| Comparison operator.
|
|
void | SetLogPriority (LogPriority priority) |
| Set the priority of a particular log category.
|
|
LogPriority | GetLogPriority () const |
| Get the priority of a particular log category.
|
|
void | LogUnformatted (LogPriority priority, StringParam message) const |
| Log an unformatted message with the specified priority.
|
|
template<class... ARGS> |
void | Log (LogPriority priority, std::string_view fmt, ARGS... args) const |
| Log a message with the specified priority.
|
|
template<class... ARGS> |
void | LogTrace (std::string_view fmt, ARGS &&... args) const |
| Log a message with SDL_LOG_PRIORITY_TRACE.
|
|
template<class... ARGS> |
void | LogVerbose (std::string_view fmt, ARGS &&... args) const |
| Log a message with SDL_LOG_PRIORITY_VERBOSE.
|
|
template<class... ARGS> |
void | LogDebug (std::string_view fmt, ARGS &&... args) const |
| Log a message with SDL_LOG_PRIORITY_DEBUG.
|
|
template<class... ARGS> |
void | LogInfo (std::string_view fmt, ARGS &&... args) const |
| Log a message with SDL_LOG_PRIORITY_INFO.
|
|
template<class... ARGS> |
void | LogWarn (std::string_view fmt, ARGS &&... args) const |
| Log a message with SDL_LOG_PRIORITY_WARN.
|
|
template<class... ARGS> |
void | LogError (std::string_view fmt, ARGS &&... args) const |
| Log a message with SDL_LOG_PRIORITY_ERROR.
|
|
template<class... ARGS> |
void | LogCritical (std::string_view fmt, ARGS &&... args) const |
| Log a message with SDL_LOG_PRIORITY_CRITICAL.
|
|
By default the application and gpu categories are enabled at the INFO level, the assert category is enabled at the WARN level, test is enabled at the VERBOSE level and all other categories are enabled at the ERROR level.
- Since
- This enum is available since SDL 3.2.0.
- Category:
- Wrap state
- See also
- wrap-state