RTBKit  0.9
Open-source framework to create real-time ad bidding systems.
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Static Public Member Functions
Datacratic::EasyKvpLogger Class Reference

#include <easy_kvp_logger.h>

List of all members.

Public Member Functions

 EasyKvpLogger (const boost::property_tree::ptree &pt, const std::string &coll, const std::string &envVar, const bool &logStarEnd=false, const strmap &defaults=strmap())
 EasyKvpLogger (const boost::property_tree::ptree &pt, const std::string &coll, const std::string &envVar, const std::string &runId, const bool &logStartEnd=false, const strmap &defaults=strmap())
 EasyKvpLogger (const boost::program_options::variables_map &vm, const std::string &coll, const std::string &envVar, const bool &logStarEnd=false, const strmap &defaults=strmap())
void log (strmap &kvpMap)
void clog (const strmap &kvpMap)
void log (const std::string &key, const std::string &value)
std::string getRunId ()
void setDefaults (const strmap &defaults)

Static Public Member Functions

static
boost::program_options::options_description 
get_options ()

Detailed Description

EasyKvpLogger is a wrapper that easily allows to log a runId, key and value. It's initialized via a boost ptree and default keys. (See the .cc file.)

Definition at line 17 of file easy_kvp_logger.h.


Member Function Documentation

void Datacratic::EasyKvpLogger::clog ( const strmap &  kvpMap)

Same as log but we don't need to declare the strmap before passing, it, we can do it inline

Definition at line 124 of file easy_kvp_logger.cc.

void Datacratic::EasyKvpLogger::setDefaults ( const strmap &  defaults)

Clears the defaults values and uses the new ones.

Definition at line 148 of file easy_kvp_logger.cc.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator