|
Vulkan Schnee 0.0.1
High-performance rendering engine
|
Represents a single log category with verbosity control. More...
#include <LogCategory.h>
Public Member Functions | |
| LogCategory (const char *name, LogVerbosity defaultVerbosity, LogVerbosity compileTimeVerbosity) | |
| Construct a log category. | |
| const char * | getName () const |
| Get the category name. | |
| LogVerbosity | getVerbosity () const |
| Get current runtime verbosity. | |
| constexpr LogVerbosity | getCompileTimeVerbosity () const |
| Get compile-time verbosity (for constexpr checks) | |
| void | setVerbosity (LogVerbosity verbosity) |
| Set runtime verbosity. | |
| bool | isSuppressed (LogVerbosity messageVerbosity) const |
| Check if a message at the given verbosity should be logged. | |
Private Attributes | |
| const char * | name_ |
| std::atomic< LogVerbosity > | runtimeVerbosity_ |
| const LogVerbosity | compileTimeVerbosity_ |
Represents a single log category with verbosity control.
Each category has:
Definition at line 88 of file LogCategory.h.
| EngineCore::LogCategory::LogCategory | ( | const char * | name, |
| LogVerbosity | defaultVerbosity, | ||
| LogVerbosity | compileTimeVerbosity ) |
Construct a log category.
| name | Category name (should start with "Log") |
| defaultVerbosity | Initial runtime verbosity |
| compileTimeVerbosity | Maximum verbosity that gets compiled in |
Definition at line 44 of file LogCategory.cpp.
References compileTimeVerbosity_, EngineCore::LogCategoryManager::get(), name_, EngineCore::LogCategoryManager::registerCategory(), and runtimeVerbosity_.
|
inlinenodiscardconstexpr |
Get compile-time verbosity (for constexpr checks)
Definition at line 106 of file LogCategory.h.
References compileTimeVerbosity_.
|
inlinenodiscard |
Get the category name.
Definition at line 100 of file LogCategory.h.
References name_.
Referenced by EngineCore::logImpl(), EngineCore::logImplSimple(), and EngineCore::LogCategoryManager::registerCategory().
|
inlinenodiscard |
Get current runtime verbosity.
Definition at line 103 of file LogCategory.h.
References runtimeVerbosity_.
|
inlinenodiscard |
Check if a message at the given verbosity should be logged.
| messageVerbosity | Verbosity of the message |
Definition at line 116 of file LogCategory.h.
References runtimeVerbosity_.
|
inline |
|
private |
Definition at line 124 of file LogCategory.h.
Referenced by getCompileTimeVerbosity(), and LogCategory().
|
private |
Definition at line 122 of file LogCategory.h.
Referenced by getName(), and LogCategory().
|
private |
Definition at line 123 of file LogCategory.h.
Referenced by getVerbosity(), isSuppressed(), LogCategory(), and setVerbosity().