Main logging interface.
More...
#include <duckdb.hpp>
|
| DUCKDB_API | Logger (LogManager &manager) |
| |
|
virtual DUCKDB_API bool | ShouldLog (const char *log_type, LogLevel log_level)=0 |
| |
|
DUCKDB_API void | WriteLog (const char *log_type, LogLevel log_level, const char *message) |
| |
|
DUCKDB_API void | WriteLog (const char *log_type, LogLevel log_level, const string &message) |
| |
|
DUCKDB_API void | WriteLog (const char *log_type, LogLevel log_level, const string_t &message) |
| |
| template<typename... ARGS> |
| void | WriteLog (const char *log_type, LogLevel log_level, const char *format_string, ARGS... params) |
| |
|
virtual DUCKDB_API void | Flush ()=0 |
| |
|
virtual DUCKDB_API bool | IsThreadSafe ()=0 |
| |
| virtual DUCKDB_API bool | IsMutable () |
| |
| virtual DUCKDB_API void | UpdateConfig (LogConfig &new_config) |
| |
|
virtual DUCKDB_API const LogConfig & | GetConfig () const =0 |
| |
◆ Logger()
| DUCKDB_API duckdb::Logger::Logger |
( |
LogManager & |
manager | ) |
|
|
inlineexplicit |
39260 : manager(manager) {
39261 }
◆ WriteLog()
template<typename... ARGS>
| void duckdb::Logger::WriteLog |
( |
const char * |
log_type, |
|
|
LogLevel |
log_level, |
|
|
const char * |
format_string, |
|
|
ARGS... |
params |
|
) |
| |
|
inline |
39275 {
39277 WriteLog(log_type, log_level, formatted_string.c_str());
39278 }
static string Format(const string fmt_str, ARGS... params)
Format a string using printf semantics.
Definition duckdb.hpp:4002
PyParams params(const std::string &tag, const std::string &model, const std::string &weights, const std::string &device)
◆ Flush()
| static void duckdb::Logger::Flush |
( |
T & |
log_context_source | ) |
|
|
inlinestatic |
39293 {
39294 Get(log_context_source).Flush();
39295 }
◆ IsMutable()
| virtual DUCKDB_API bool duckdb::Logger::IsMutable |
( |
| ) |
|
|
inlinevirtual |
39298 {
39299 return false;
39300 };
◆ UpdateConfig()
39301 {
39302 throw InternalException("Cannot update the config of this logger!");
39303 }
The documentation for this class was generated from the following file: