RTC Toolkit
2.0.0
|
This class provides default configuration values for the rtctkConfigTool tool itself. More...
Public Member Functions | |
def | __init__ (self) |
def | set_config_param_names (self, config_param_names) |
def | log_config (self) |
Logs the current configuration values in a single log message. More... | |
def | load_config (self, Optional[Uri] cli_config_uri, Optional[Uri] cli_service_discovery_endpoint, Optional[str] cli_log_level, Optional[Uri] cli_runtime_repo_endpoint, Optional[Uri] cli_persistent_repo_endpoint, Optional[bool] cli_console_quiet) |
def | convert_to_log_level (self, level) |
Static Public Member Functions | |
def | init_logger_config (file_name_base, console_quiet=False) |
Public Attributes | |
console_quiet | |
config_endpoint_location | |
service_discovery_endpoint_location | |
log_level | |
log_level_location | |
runtime_repo_endpoint_location | |
persistent_repo_endpoint_location | |
Static Public Attributes | |
config_uri = Uri('file:persistent_repo') | |
string | config_location = 'Default' |
service_discovery_endpoint_path = DataPointPath('/rtctk_config_tool/service_discovery_endpoint') | |
service_discovery_endpoint = Uri('file:service_disc.yaml') | |
string | service_discovery_endpoint_location = 'Default' |
log_level_path = DataPointPath('/rtctk_config_tool/log_level') | |
string | log_level = "INFO" |
string | log_level_location = 'Default' |
list | valid_log_levels = ['CRITICAL', 'FATAL', 'ERROR', 'WARNING', 'INFO', 'DEBUG', 'TRACE', 'NOTSET'] |
runtime_repo_endpoint_path = DataPointPath('/rtctk_config_tool/runtime_repo_endpoint') | |
runtime_repo_endpoint = Uri('file:runtime_repo') | |
string | runtime_repo_endpoint_location = 'Default' |
persistent_repo_endpoint_path = DataPointPath('/rtctk_config_tool/persistent_repo_endpoint') | |
persistent_repo_endpoint = Uri('file:persistent_repo') | |
string | persistent_repo_endpoint_location = 'Default' |
bool | console_quiet = False |
console_quiet_path = DataPointPath('/rtctk_config_tool/console_quiet') | |
string | console_quiet_location = 'Default' |
This class provides default configuration values for the rtctkConfigTool tool itself.
Only the configuration parameters needed to make the tool work are maintained in this class. This includes their default values, the corresponding environment variable and datapoint paths when loading from file or the central configuration system. These parameters should not be confused with the RTC system configuration.
Some additional helper methods are also provided to deal with various aspects of configuring the tool.
def comms.config.Configuration.__init__ | ( | self | ) |
def comms.config.Configuration.convert_to_log_level | ( | self, | |
level | |||
) |
|
static |
def comms.config.Configuration.load_config | ( | self, | |
Optional[Uri] | cli_config_uri, | ||
Optional[Uri] | cli_service_discovery_endpoint, | ||
Optional[str] | cli_log_level, | ||
Optional[Uri] | cli_runtime_repo_endpoint, | ||
Optional[Uri] | cli_persistent_repo_endpoint, | ||
Optional[bool] | cli_console_quiet | ||
) |
def comms.config.Configuration.log_config | ( | self | ) |
Logs the current configuration values in a single log message.
def comms.config.Configuration.set_config_param_names | ( | self, | |
config_param_names | |||
) |
comms.config.Configuration.config_endpoint_location |
|
static |
|
static |
|
static |
comms.config.Configuration.console_quiet |
|
static |
|
static |
|
static |
comms.config.Configuration.log_level |
|
static |
comms.config.Configuration.log_level_location |
|
static |
|
static |
|
static |
comms.config.Configuration.persistent_repo_endpoint_location |
|
static |
|
static |
|
static |
comms.config.Configuration.runtime_repo_endpoint_location |
|
static |
|
static |
|
static |
comms.config.Configuration.service_discovery_endpoint_location |
|
static |
|
static |