ReXGlue SDK
Loading...
Searching...
No Matches
rex::log::LogCategory Class Reference

#include <rex/logging/log_category.h>

Inheritance diagram for rex::log::LogCategory:
[legend]

Public Member Functions

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

Static Public Attributes

static constexpr u16 kUnresolved = 0xFFFF

Friends

class DetailAccess

Additional Inherited Members

Protected Member Functions inherited from rex::NonCopyable
 NonCopyable (const NonCopyable &)=delete
NonCopyable & operator= (const NonCopyable &)=delete

Detailed Description

Log category declared with REXLOG_CATEGORY and added with Logger::AddCategories. Copies with the same name share one level.

Constructor & Destructor Documentation

◆ LogCategory()

rex::log::LogCategory::LogCategory ( std::string_view name,
std::string_view description )
inlineconstexprnoexcept

Builds the descriptor.

Parameters
nameIdentifier, lowercase, unique across the process.
descriptionShown by the console.

Member Function Documentation

◆ 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.

Member Data Documentation

◆ 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: