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>
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.
◆ LoggingCategory() [1/3]
| sf::LoggingCategory::LoggingCategory |
( |
const char * | name | ) |
|
|
explicit |
Constructs a logging category with the given unique name.
- Parameters
-
| name | Null-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 |
◆ 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
-
| level | Severity level to check. |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ setEnabled()
| void sf::LoggingCategory::setEnabled |
( |
LogLevel | level, |
|
|
bool | enable ) |
|
noexcept |
Dynamically enables or disables a specific log level for this category.
- Parameters
-
| level | Severity level to toggle. |
| enable | True to enable, false to disable. |
The documentation for this class was generated from the following file: