Kea  1.9.9-git
isc::db::DbLogger Class Reference

Database logger class. More...

#include <db_log.h>

Public Types

typedef std::map< DbMessageID, isc::log::MessageIDMessageMap
 Translation map type. More...

Public Member Functions

 DbLogger (isc::log::Logger &logger, const MessageMap &map)
 Constructor. More...
const isc::log::MessageIDtranslateMessage (const DbMessageID &id) const
 Translate message. More...

Public Attributes

 The logger. More...
const MessageMapmap_
 The translation map. More...

Detailed Description

Database logger class.

Definition at line 74 of file db_log.h.

Member Typedef Documentation

Translation map type.

Definition at line 77 of file db_log.h.

Constructor & Destructor Documentation

isc::db::DbLogger::DbLogger ( isc::log::Logger logger,
const MessageMap map 


loggerlogger which will be called
mapmessage id translation map

Definition at line 83 of file db_log.h.

Member Function Documentation

const MessageID & isc::db::DbLogger::translateMessage ( const DbMessageID id) const

Translate message.

iddatabase message id
logger message
Unexpectedif the id is not in the message map

Definition at line 54 of file

References isc_throw.

Member Data Documentation

isc::log::Logger& isc::db::DbLogger::logger_

The logger.

Definition at line 95 of file db_log.h.

const MessageMap& isc::db::DbLogger::map_

The translation map.

Definition at line 98 of file db_log.h.

The documentation for this class was generated from the following files: