249403 {
249404 auto enable_fun = TableFunction("enable_logging", {}, EnableLogging, BindEnableLogging, nullptr, nullptr);
249405
249406
249407 enable_fun.named_parameters.emplace("level", LogicalType::VARCHAR);
249408 enable_fun.named_parameters.emplace("storage", LogicalType::VARCHAR);
249409 enable_fun.named_parameters.emplace("storage_config", LogicalType::ANY);
249410
249411
249412 enable_fun.named_parameters.emplace("storage_path", LogicalType::VARCHAR);
249413 enable_fun.named_parameters.emplace("storage_normalize", LogicalType::BOOLEAN);
249414 enable_fun.named_parameters.emplace("storage_buffer_size", LogicalType::UBIGINT);
249415
249416 enable_fun.varargs = LogicalType::ANY;
249417 set.AddFunction(enable_fun);
249418
249419 auto disable_fun = TableFunction(
"disable_logging", {},
DisableLogging, BindDisableLogging,
nullptr,
nullptr);
249420 set.AddFunction(disable_fun);
249421
249422 auto truncate_fun = TableFunction(
"truncate_duckdb_logs", {},
TruncateLogs, BindTruncateLogs,
nullptr,
nullptr);
249423 set.AddFunction(truncate_fun);
249424}
static void DisableLogging(ClientContext &context, TableFunctionInput &data, DataChunk &output)
Reset the logmanager to the defaults.
Definition duckdb.cpp:249378
static void TruncateLogs(ClientContext &context, TableFunctionInput &data, DataChunk &output)
Truncate the current log storage.
Definition duckdb.cpp:249383