Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::EnableHTTPLoggingSetting Struct Reference

Public Types

using RETURN_TYPE = bool

Static Public Member Functions

static void SetLocal (ClientContext &context, const Value &parameter)
static void ResetLocal (ClientContext &context)
static Value GetSetting (const ClientContext &context)

Static Public Attributes

static constexpr const char * Name = "enable_http_logging"
static constexpr const char * Description = "(deprecated) Enables HTTP logging"
static constexpr const char * InputType = "BOOLEAN"

Member Function Documentation

◆ SetLocal()

void duckdb::EnableHTTPLoggingSetting::SetLocal ( ClientContext & context,
const Value & parameter )
static
302497 {
302498 auto &config = ClientConfig::GetConfig(context);
302499 config.enable_http_logging = input.GetValue<bool>();
302500
302501 // NOTE: this is a deprecated setting: we mimick the old behaviour by setting the log storage output to STDOUT and
302502 // enabling logging for http only. Note that this behaviour is slightly wonky in that it sets all sorts of logging
302503 // config
302504 auto &log_manager = LogManager::Get(context);
302505 if (config.enable_http_logging) {
302506 log_manager.SetEnableLogging(true);
302507 log_manager.SetLogLevel(HTTPLogType::LEVEL);
302508 unordered_set<string> enabled_log_types = {HTTPLogType::NAME};
302509 log_manager.SetEnabledLogTypes(enabled_log_types);
302510 log_manager.SetLogStorage(*context.db, LogConfig::STDOUT_STORAGE_NAME);
302511 } else {
302512 log_manager.SetEnableLogging(false);
302513 }
302514}

◆ ResetLocal()

void duckdb::EnableHTTPLoggingSetting::ResetLocal ( ClientContext & context)
static
302516 {
302517 ClientConfig::GetConfig(context).enable_http_logging = ClientConfig().enable_http_logging;
302518}

◆ GetSetting()

Value duckdb::EnableHTTPLoggingSetting::GetSetting ( const ClientContext & context)
static
302520 {
302521 auto &config = ClientConfig::GetConfig(context);
302522 return Value::BOOLEAN(config.enable_http_logging);
302523}
static DUCKDB_API Value BOOLEAN(bool value)
Create a boolean Value from a specified value.
Definition duckdb.cpp:132118

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