MCPcopy Create free account
hub / github.com/duckdb/duckdb / RegisterShellLogger

Function RegisterShellLogger

tools/shell/shell.cpp:1164–1171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1162}
1163
1164static void RegisterShellLogger(duckdb::DuckDB &db, duckdb::shared_ptr<duckdb::LogStorage> storage_ptr) {
1165 auto *db_instance = db.instance.get();
1166 auto &log_manager = db_instance->GetLogManager();
1167 log_manager.RegisterLogStorage("shell_log_storage", storage_ptr);
1168 log_manager.SetLogStorage(*db_instance, "shell_log_storage");
1169 log_manager.SetEnableLogging(db_instance);
1170 log_manager.SetLogLevel(duckdb::LogLevel::LOG_WARNING);
1171}
1172
1173void ShellState::OpenDB(ShellOpenFlags flags) {
1174 // log storage to stdout

Callers 1

OpenDBMethod · 0.85

Calls 5

RegisterLogStorageMethod · 0.80
SetLogStorageMethod · 0.80
SetEnableLoggingMethod · 0.80
SetLogLevelMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected