Kea  1.9.9-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 126 of file db_log.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

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.

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

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< debug >::arg().


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