![]() |
RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
#include <logger.h>
Public Member Functions | |
| virtual void | logMessage (const std::string &channel, const std::string &message)=0 |
| virtual void | close ()=0 |
| virtual Json::Value | stats () const |
| virtual void | clearStats () |
Abstract class that takes the log input and does something with it.
| void Datacratic::LogOutput::clearStats | ( | ) | [virtual] |
Clears the current value of stats. Default implementation does nothing.
Reimplemented in Datacratic::RotatingOutputAdaptor, Datacratic::CarbonStatsOutput, Datacratic::MultiOutput, Datacratic::ConsoleStatsOutput, and Datacratic::WorkerThreadOutput.
| virtual void Datacratic::LogOutput::close | ( | ) | [pure virtual] |
Should close whatever resources are being used by the output and join any threads that it's created.
Implemented in WinLossOutput, Datacratic::JS::JSOutput, Datacratic::RotatingOutputAdaptor, Datacratic::CarbonStatsOutput, Datacratic::RemoteOutput, Datacratic::NamedOutput, Datacratic::ConsoleStatsOutput, Datacratic::PublishOutput, Datacratic::MultiOutput, Datacratic::RotatingOutput, and Datacratic::CallbackOutput.
| virtual void Datacratic::LogOutput::logMessage | ( | const std::string & | channel, |
| const std::string & | message | ||
| ) | [pure virtual] |
This is the method that will be called whenever we need to log a message to something.
Implemented in WinLossOutput, Datacratic::JS::JSOutput, Datacratic::RotatingOutputAdaptor, Datacratic::CarbonStatsOutput, Datacratic::RemoteOutput, Datacratic::ConsoleStatsOutput, Datacratic::WorkerThreadOutput, Datacratic::PublishOutput, Datacratic::MultiOutput, and Datacratic::CallbackOutput.
| Json::Value Datacratic::LogOutput::stats | ( | ) | const [virtual] |
Should return a JSON object containing whatever stats have been accumulated since last time clearStats() was called.
Default returns an empty JSON object.
Reimplemented in Datacratic::RotatingOutputAdaptor, Datacratic::CarbonStatsOutput, Datacratic::MultiOutput, Datacratic::ConsoleStatsOutput, and Datacratic::WorkerThreadOutput.
1.7.6.1