Logging context that tracks which logging statements are enabled.
The logging system in habitat-sim can be configured in a variety of ways to determine which logging statements should be printed.
Due to the use of ESP_LOG_IF, logging statements that are not printed are as close to free as reasonably possible.
- Convenience constructor that grabs the configuration string from the environment variable and calls LoggingContext(Corrade::
- LoggingContext(Corrade::Containers::StringView envString) explicit
- LoggingContext(LoggingContext&&) deleted
- LoggingContext(LoggingContext&) deleted
logging:: LoggingContext:: LoggingContext(Corrade::Containers::StringView envString) explicit
|envString in||Configuration string. See processEnvString for details|
Processes the environment variable string that configures the habitat-sim logging levels for various subsystems
This environment string has a fairly simple grammar that is as follows
FilterString: SetLevelCommand (COLON SetLevelCommand)* SetLevelCommand: (SUBSYSTEM (COMMA SUBSYSTEM)* EQUALS)? LOGGING_LEVEL
where SUBSYSTEM is a known logging subsystem and LOGGING_LEVEL is one of the logging levels. If a SetLevelCommand does not contain a list of subsystems, that level is applied to all subsystems.
A logging statement is printed if it's logging level has a higher or equal priority to the current logging level for it's subsystem. verbose is the lowest level. quiet disables debug and warnings.