OmniSciDB
a5dc49c757
|
#include <QueryState.h>
Public Member Functions | |
template<typename... Pairs> | |
StdLog (char const *file, unsigned line, char const *func, std::shared_ptr< Catalog_Namespace::SessionInfo > session_info, Pairs &&...pairs) | |
template<typename... Pairs> | |
StdLog (char const *file, unsigned line, char const *func, std::shared_ptr< Catalog_Namespace::SessionInfo > session_info, std::shared_ptr< QueryState > query_state, Pairs &&...pairs) | |
template<typename... Pairs> | |
StdLog (char const *file, unsigned line, char const *func, std::shared_ptr< QueryState > query_state, Pairs &&...pairs) | |
template<typename... Pairs> | |
StdLog (char const *file, unsigned line, char const *func, Pairs &&...pairs) | |
StdLog (StdLog const &)=delete | |
StdLog (StdLog &&)=default | |
~StdLog () | |
template<typename... Pairs> | |
void | appendNameValuePairs (Pairs &&...pairs) |
template<typename Units = std::chrono::milliseconds> | |
Units::rep | duration () const |
std::shared_ptr < Catalog_Namespace::SessionInfo const > | getConstSessionInfo () const |
std::shared_ptr < Catalog_Namespace::SessionInfo > | getSessionInfo () const |
void | setQueryState (std::shared_ptr< QueryState >) |
void | setSessionInfo (std::shared_ptr< Catalog_Namespace::SessionInfo >) |
Private Member Functions | |
void | log (logger::Severity, char const *label) |
void | logCallStack (logger::Severity, char const *label) |
Static Private Member Functions | |
static logger::Severity | stdlogBeginSeverity (char const *func) |
Private Attributes | |
std::shared_ptr < Catalog_Namespace::SessionInfo > | session_info_ |
std::shared_ptr< QueryState > | query_state_ |
Additional Inherited Members | |
Protected Member Functions inherited from query_state::StdLogData | |
template<typename... Pairs> | |
StdLogData (char const *file, unsigned line, char const *func, Pairs &&...pairs) | |
Protected Attributes inherited from query_state::StdLogData | |
std::string const | file_ |
unsigned const | line_ |
char const *const | func_ |
Clock::time_point const | start_ |
int64_t const | match_ |
std::list< std::string > | name_value_pairs_ |
Static Protected Attributes inherited from query_state::StdLogData | |
static std::atomic< int64_t > | s_match {0} |
Definition at line 261 of file QueryState.h.
|
inline |
Definition at line 270 of file QueryState.h.
References log(), and stdlogBeginSeverity().
|
inline |
Definition at line 281 of file QueryState.h.
References log(), and stdlogBeginSeverity().
|
inline |
Definition at line 294 of file QueryState.h.
References log(), and stdlogBeginSeverity().
|
inline |
Definition at line 304 of file QueryState.h.
References log(), and stdlogBeginSeverity().
|
delete |
|
default |
query_state::StdLog::~StdLog | ( | ) |
Definition at line 267 of file QueryState.cpp.
References logger::DEBUG1, logger::INFO, log(), logCallStack(), query_state_, and session_info_.
|
inline |
Definition at line 312 of file QueryState.h.
References query_state::StdLogData::name_value_pairs_, and to_string().
Referenced by DBHandler::connect_impl().
|
inline |
std::shared_ptr< Catalog_Namespace::SessionInfo const > query_state::StdLog::getConstSessionInfo | ( | ) | const |
Definition at line 150 of file QueryState.cpp.
References session_info_.
Referenced by DBHandler::connect_impl(), and DBHandler::get_completion_hints_unsorted().
std::shared_ptr< Catalog_Namespace::SessionInfo > query_state::StdLog::getSessionInfo | ( | ) | const |
Definition at line 155 of file QueryState.cpp.
References session_info_.
Referenced by DBHandler::get_table_details_impl().
|
private |
Definition at line 217 of file QueryState.cpp.
References logger::fast_logging_check(), query_state::StdLogData::file_, query_state::StdLogData::func_, hide_sensitive_data_from_query(), query_state::StdLogData::line_, query_state::StdLogData::match_, query_state::StdLogData::name_value_pairs_, query_state_, logger::ThreadLocalIds::request_id_, session_info_, logger::ThreadLocalIds::thread_id_, and logger::thread_local_ids().
Referenced by StdLog(), and ~StdLog().
|
private |
Definition at line 255 of file QueryState.cpp.
References logger::fast_logging_check(), query_state::StdLogData::file_, query_state::StdLogData::func_, query_state::StdLogData::line_, query_state::StdLogData::match_, query_state_, logger::ThreadLocalIds::request_id_, logger::ThreadLocalIds::thread_id_, and logger::thread_local_ids().
Referenced by ~StdLog().
void query_state::StdLog::setQueryState | ( | std::shared_ptr< QueryState > | query_state | ) |
Definition at line 278 of file QueryState.cpp.
References query_state_.
Referenced by DBHandler::get_table_details_impl().
void query_state::StdLog::setSessionInfo | ( | std::shared_ptr< Catalog_Namespace::SessionInfo > | session_info | ) |
Definition at line 282 of file QueryState.cpp.
References session_info_.
Referenced by DBHandler::connect_impl().
|
staticprivate |
Definition at line 190 of file QueryState.cpp.
References logger::DEBUG1, and logger::INFO.
Referenced by StdLog().
|
private |
Definition at line 263 of file QueryState.h.
Referenced by log(), logCallStack(), setQueryState(), and ~StdLog().
|
private |
Definition at line 262 of file QueryState.h.
Referenced by getConstSessionInfo(), getSessionInfo(), log(), setSessionInfo(), and ~StdLog().