![]() |
RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
#include <easy_kvp_logger.h>
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 () |
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.
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.