Syntalos::datactl::LogCategory
Syntalos::datactl::LogCategory
A named log category with a per-instance severity threshold. More…
#include <logging.h>
Public Functions
| Name | |
|---|---|
| LogCategory(const char * name, LogSeverity defaultSeverity =LogSeverity::Info) | |
| LogCategory(const LogCategory & ) =delete | |
| LogCategory & | operator=(const LogCategory & ) =delete |
| const char * | name() const The name of this category, e.g. “time.clock”. |
| bool | isEnabled(LogSeverity severity) const Check whether a message of the given severity would be logged. |
Friends
| Name | |
|---|---|
| void | setLogSeverity(LogSeverity min) Set the minimum log severity globally across all datactl categories. |
| void | setLogSeverity(const char * category, LogSeverity min) Set the minimum log severity for a specific category. |
Detailed Description
class Syntalos::datactl::LogCategory;A named log category with a per-instance severity threshold.
Define one per source file with SY_DEFINE_LOG_CATEGORY() and pass it to the SY_LOG_* macros below.
Public Functions Documentation
function LogCategory
explicit LogCategory(
const char * name,
LogSeverity defaultSeverity =LogSeverity::Info
)function LogCategory
LogCategory(
const LogCategory &
) =deletefunction operator=
LogCategory & operator=(
const LogCategory &
) =deletefunction name
inline const char * name() constThe name of this category, e.g. “time.clock”.
function isEnabled
inline bool isEnabled(
LogSeverity severity
) constCheck whether a message of the given severity would be logged.
Useful to skip expensive work that is only needed for a log message.
Friends
friend setLogSeverity
friend void setLogSeverity(
LogSeverity min
);Set the minimum log severity globally across all datactl categories.
Messages below min are discarded before formatting.
friend setLogSeverity
friend void setLogSeverity(
const char * category,
LogSeverity min
);Set the minimum log severity for a specific category.
Updated on 2026-12-04 at 23:44:26 +0000