#include <rex/logging/log_category.h>
|
| constexpr | LogCategory (std::string_view name, std::string_view description) noexcept |
|
constexpr std::string_view | GetName () const |
|
constexpr std::string_view | GetDescription () const |
| bool | IsEnabled (Level level) const |
|
|
| NonCopyable (const NonCopyable &)=delete |
|
NonCopyable & | operator= (const NonCopyable &)=delete |
Log category declared with REXLOG_CATEGORY and added with Logger::AddCategories. Copies with the same name share one level.
◆ LogCategory()
| rex::log::LogCategory::LogCategory |
( |
std::string_view | name, |
|
|
std::string_view | description ) |
|
inlineconstexprnoexcept |
Builds the descriptor.
- Parameters
-
| name | Identifier, lowercase, unique across the process. |
| description | Shown by the console. |
◆ IsEnabled()
| bool rex::log::LogCategory::IsEnabled |
( |
Level | level | ) |
const |
Reports whether a message at a level would be written.
- Returns
- True when the level is at or above the category's effective level.
◆ kUnresolved
| u16 rex::log::LogCategory::kUnresolved = 0xFFFF |
|
staticconstexpr |
Slot value of a copy that has not written yet.
The documentation for this class was generated from the following file: