libcamera
v0.3.2+116-83c5ad0f
Supporting cameras in Linux since 2019
|
A category of log message. More...
Public Member Functions | |
const std::string & | name () const |
Retrieve the log category name. More... | |
LogSeverity | severity () const |
Retrieve the severity of the log category. More... | |
void | setSeverity (LogSeverity severity) |
Set the severity of the log category. More... | |
Static Public Member Functions | |
static LogCategory * | create (const char *name) |
Create a new LogCategory or return an existing one. More... | |
static const LogCategory & | defaultCategory () |
Retrieve the default log category. More... | |
A category of log message.
The LogCategory class represents a category of log messages, related to an area of the library. It groups all messages belonging to the same category, and is used to control the log level per group.
|
static |
Create a new LogCategory or return an existing one.
[in] | name | Name of the log category |
Create and return a new LogCategory with the given name if such a category does not yet exist, or return the existing one.
|
static |
Retrieve the default log category.
The default log category is named "default" and is used by the LOG() macro when no log category is specified.
|
inline |
Retrieve the log category name.
void libcamera::LogCategory::setSeverity | ( | LogSeverity | severity | ) |
Set the severity of the log category.
Messages of severity higher than or equal to the severity of the log category are printed, other messages are discarded.
|
inline |
Retrieve the severity of the log category.