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::LogManager Class Reference
Collaboration diagram for duckdb::LogManager:

Public Member Functions

 LogManager (DatabaseInstance &db, LogConfig config=LogConfig())
 
void Initialize ()
 
unique_ptr< LoggerCreateLogger (LoggingContext context, bool thread_safe=true, bool mutable_settings=false)
 
RegisteredLoggingContext RegisterLoggingContext (LoggingContext &context)
 
DUCKDB_API bool RegisterLogStorage (const string &name, shared_ptr< LogStorage > &storage)
 
DUCKDB_API LoggerGlobalLogger ()
 The global logger can be used whe.
 
DUCKDB_API shared_ptr< LoggerGlobalLoggerReference ()
 
DUCKDB_API void Flush ()
 Flush everything.
 
DUCKDB_API shared_ptr< LogStorageGetLogStorage ()
 Get a shared_ptr to the log storage (For example, to scan it)
 
DUCKDB_API bool CanScan (LoggingTargetTable table)
 
DUCKDB_API void SetConfig (DatabaseInstance &db, const LogConfig &config)
 
DUCKDB_API void SetEnableLogging (bool enable)
 
DUCKDB_API void SetLogMode (LogMode mode)
 
DUCKDB_API void SetLogLevel (LogLevel level)
 
DUCKDB_API void SetEnabledLogTypes (optional_ptr< unordered_set< string > > enabled_log_types)
 
DUCKDB_API void SetDisabledLogTypes (optional_ptr< unordered_set< string > > disabled_log_types)
 
DUCKDB_API void SetLogStorage (DatabaseInstance &db, const string &storage_name)
 
DUCKDB_API void UpdateLogStorageConfig (DatabaseInstance &db, case_insensitive_map_t< Value > &config_value)
 
DUCKDB_API void SetEnableStructuredLoggers (vector< string > &enabled_logger_types)
 
DUCKDB_API void TruncateLogStorage ()
 
DUCKDB_API LogConfig GetConfig ()
 
DUCKDB_API void RegisterLogType (unique_ptr< LogType > type)
 
DUCKDB_API optional_ptr< const LogTypeLookupLogType (const string &type)
 
DUCKDB_API void RegisterDefaultLogTypes ()
 

Static Public Member Functions

static DUCKDB_API LogManagerGet (ClientContext &context)
 

Protected Member Functions

RegisteredLoggingContext RegisterLoggingContextInternal (LoggingContext &context)
 
void WriteLogEntry (timestamp_t, const char *log_type, LogLevel log_level, const char *log_message, const RegisteredLoggingContext &context)
 
void FlushCachedLogEntries (DataChunk &chunk, const RegisteredLoggingContext &context)
 
void SetLogStorageInternal (DatabaseInstance &db, const string &storage_name)
 
optional_ptr< const LogTypeLookupLogTypeInternal (const string &type)
 
void SetConfigInternal (LogConfig config)
 

Protected Attributes

mutex lock
 
LogConfig config
 
shared_ptr< Loggerglobal_logger
 
shared_ptr< LogStoragelog_storage
 
DatabaseInstancedb_instance
 
idx_t next_registered_logging_context_index = 0
 
case_insensitive_map_t< shared_ptr< LogStorage > > registered_log_storages
 
case_insensitive_map_t< unique_ptr< LogType > > registered_log_types
 

Friends

class ThreadSafeLogger
 
class ThreadLocalLogger
 
class MutableLogger
 

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