|
SDL3pp
A slim C++ wrapper for SDL3
|
The predefined log categories. More...
Public Member Functions | |
| constexpr | LogCategory (LogCategoryRaw category=SDL_LOG_CATEGORY_APPLICATION) |
| Wraps LogCategory. More... | |
| constexpr | LogCategory (int category) |
| Wraps LogCategory. More... | |
| constexpr | operator LogCategoryRaw () const |
| Unwraps to the underlying LogCategory. More... | |
| void | LogUnformatted (LogPriority priority, StringParam message) const |
| Log an unformatted message with the specified priority. More... | |
LogCategories | |
The logging categories. see LogCategory for more info | |
| void | SetLogPriority (LogPriority priority) const |
| Set the priority of a particular log category. More... | |
| LogPriority | GetLogPriority () const |
| Get the priority of a particular log category. More... | |
| template<class... ARGS> | |
| void | LogMessage (LogPriority priority, std::string_view fmt, ARGS... args) const |
| Log a message with the specified priority. More... | |
| template<class... ARGS> | |
| void | LogTrace (std::string_view fmt, ARGS &&... args) const |
| Log a message with LOG_PRIORITY_TRACE. More... | |
| template<class... ARGS> | |
| void | LogVerbose (std::string_view fmt, ARGS &&... args) const |
| Log a message with LOG_PRIORITY_VERBOSE. More... | |
| template<class... ARGS> | |
| void | LogDebug (std::string_view fmt, ARGS &&... args) const |
| Log a message with LOG_PRIORITY_DEBUG. More... | |
| template<class... ARGS> | |
| void | LogInfo (std::string_view fmt, ARGS &&... args) const |
| Log a message with LOG_PRIORITY_INFO. More... | |
| template<class... ARGS> | |
| void | LogWarn (std::string_view fmt, ARGS &&... args) const |
| Log a message with LOG_PRIORITY_WARN. More... | |
| template<class... ARGS> | |
| void | LogError (std::string_view fmt, ARGS &&... args) const |
| Log a message with LOG_PRIORITY_ERROR. More... | |
| template<class... ARGS> | |
| void | LogCritical (std::string_view fmt, ARGS &&... args) const |
| Log a message with LOG_PRIORITY_CRITICAL. More... | |
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.