![]() |
RTBKit
0.9
Open-source framework to create real-time ad bidding systems.
|
#include <callback_output.h>
Public Types | |
typedef boost::function< void(std::string, std::string)> | Callback |
Public Member Functions | |
CallbackOutput (const Callback &callback) | |
virtual void | logMessage (const std::string &channel, const std::string &message) |
virtual void | close () |
Public Attributes | |
Callback | callback |
Class that passes messages to a callback.
Definition at line 22 of file callback_output.h.
Datacratic::CallbackOutput::CallbackOutput | ( | const Callback & | callback | ) |
Create a logger with its own zeromq context.
Definition at line 20 of file callback_output.cc.
void Datacratic::CallbackOutput::close | ( | ) | [virtual] |
Should close whatever resources are being used by the output and join any threads that it's created.
Implements Datacratic::LogOutput.
Definition at line 41 of file callback_output.cc.
void Datacratic::CallbackOutput::logMessage | ( | const std::string & | channel, |
const std::string & | message | ||
) | [virtual] |
This is the method that will be called whenever we need to log a message to something.
Implements Datacratic::LogOutput.
Definition at line 32 of file callback_output.cc.