Kea 2.5.8
isc::db::DB_LOG< log_type > Struct Template Reference

DB_LOG_* logic. More...

#include <db_log.h>

Public Member Functions

 DB_LOG (DbMessageID const message_id, int const debug_level=0)
 To preserve the old way of logging, this constructor facilitates initiating the DB_LOG_* chain call.
 
DB_LOGarg ()
 The last invocation of the arg() which is without parameters.
 
template<typename T , typename... Args>
DB_LOGarg (T first, Args... args)
 Pass parameters to replace logger placeholders.
 

Detailed Description

template<log_type_t log_type>
struct isc::db::DB_LOG< log_type >

DB_LOG_* logic.

Definition at line 126 of file db_log.h.

Constructor & Destructor Documentation

◆ DB_LOG()

template<log_type_t log_type>
isc::db::DB_LOG< log_type >::DB_LOG ( DbMessageID const  message_id,
int const  debug_level = 0 
)
inline

To preserve the old way of logging, this constructor facilitates initiating the DB_LOG_* chain call.

Definition at line 129 of file db_log.h.

References isc::db::checkDbLoggerStack(), and isc::db::db_logger_mutex.

+ Here is the call graph for this function:

Member Function Documentation

◆ arg() [1/2]

template<log_type_t log_type>
DB_LOG & isc::db::DB_LOG< log_type >::arg ( )
inline

The last invocation of the arg() which is without parameters.

Required when using variadic arguments.

Returns
reference to this object so that these calls may be chained.

Definition at line 154 of file db_log.h.

Referenced by isc::db::DB_LOG< log_type >::arg().

◆ arg() [2/2]

template<log_type_t log_type>
template<typename T , typename... Args>
DB_LOG & isc::db::DB_LOG< log_type >::arg ( first,
Args...  args 
)
inline

Pass parameters to replace logger placeholders.

Parameters
firstthe parameter to be processed now
argsthe parameters to be processes in recursive calls
Returns
reference to this object so that these calls may be chained.

Definition at line 144 of file db_log.h.

References isc::db::DB_LOG< log_type >::arg(), and isc::log::Formatter< Logger >::arg().

Referenced by isc::db::PgSqlConnection::~PgSqlConnection(), isc::db::MySqlConnection::checkError(), isc::db::PgSqlConnection::checkStatementError(), isc::db::PgSqlConnection::createSavepoint(), isc::db::MySqlConnection::initializeSchema(), isc::db::PgSqlConnection::initializeSchema(), and isc::db::DatabaseConnection::parse().

+ Here is the call graph for this function:

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