Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::LoggingCategory Class Reference

Represents a category used for logging purposes. Provides a way to group and control log messages based on different categories. It can be useful for filtering log output and applying specific logging levels to different parts of an application. More...

#include <logger.h>

Public Member Functions

 LoggingCategory (const char *name)
 Constructs a logging category with the given unique name.
 ~LoggingCategory ()
 Destructor. Releases internal bridge resources if allocated.
 LoggingCategory (const LoggingCategory &)=delete
LoggingCategory & operator= (const LoggingCategory &)=delete
 LoggingCategory (LoggingCategory &&)=delete
LoggingCategory & operator= (LoggingCategory &&)=delete
const char * categoryName () const noexcept
 Gets the category name string.
bool isEnabled (LogLevel level) const noexcept
 Checks if a specific log level is enabled for this category.
void setEnabled (LogLevel level, bool enable) noexcept
 Dynamically enables or disables a specific log level for this category.

Detailed Description

Represents a category used for logging purposes. Provides a way to group and control log messages based on different categories. It can be useful for filtering log output and applying specific logging levels to different parts of an application.

Constructor & Destructor Documentation

◆ LoggingCategory() [1/3]

sf::LoggingCategory::LoggingCategory ( const char * name)
explicit

Constructs a logging category with the given unique name.

Parameters
nameNull-terminated category name string.

◆ ~LoggingCategory()

sf::LoggingCategory::~LoggingCategory ( )

Destructor. Releases internal bridge resources if allocated.

◆ LoggingCategory() [2/3]

sf::LoggingCategory::LoggingCategory ( const LoggingCategory & )
delete

◆ LoggingCategory() [3/3]

sf::LoggingCategory::LoggingCategory ( LoggingCategory && )
delete

Member Function Documentation

◆ categoryName()

const char * sf::LoggingCategory::categoryName ( ) const
noexcept

Gets the category name string.

◆ isEnabled()

bool sf::LoggingCategory::isEnabled ( LogLevel level) const
noexcept

Checks if a specific log level is enabled for this category.

Parameters
levelSeverity level to check.

◆ operator=() [1/2]

LoggingCategory & sf::LoggingCategory::operator= ( const LoggingCategory & )
delete

◆ operator=() [2/2]

LoggingCategory & sf::LoggingCategory::operator= ( LoggingCategory && )
delete

◆ setEnabled()

void sf::LoggingCategory::setEnabled ( LogLevel level,
bool enable )
noexcept

Dynamically enables or disables a specific log level for this category.

Parameters
levelSeverity level to toggle.
enableTrue to enable, false to disable.

The documentation for this class was generated from the following file: