Kea  2.3.5-git
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. More...
 
template<typename T , typename... Args>
DB_LOGarg (T first, Args... args)
 Pass parameters to replace logger placeholders. More...
 
DB_LOGarg ()
 The last invocation of the arg() which is without parameters. More...
 

Detailed Description

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

DB_LOG_* logic.

Definition at line 123 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 126 of file db_log.h.

Member Function Documentation

◆ arg() [1/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 141 of file db_log.h.

Referenced by isc::db::DB_LOG< debug >::arg(), isc::db::MySqlConnection::checkError(), isc::db::PgSqlConnection::checkStatementError(), isc::db::PgSqlConnection::createSavepoint(), isc::db::DatabaseConnection::parse(), and isc::db::PgSqlConnection::~PgSqlConnection().

◆ arg() [2/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 151 of file db_log.h.


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