#ifndef __JLOGGER__JCONTROLHOSTLOGGER__ #define __JLOGGER__JCONTROLHOSTLOGGER__ #include #include "JNet/JControlHost.hh" #include "JLogger/JLogger.hh" /** * \author mdejong */ namespace JLOGGER {} namespace JPP { using namespace JLOGGER; } namespace JLOGGER { using JNET::JControlHost; /** * Message logging based on ControlHost. * This class implements the JLogger interface. */ class JControlHostLogger : public JLogger, protected JControlHost { public: /** * Constructor. * * \param host_name host name */ JControlHostLogger(std::string const& host_name) : JControlHost(host_name) {} /** * Report message * * \param tag tag * \param message message */ virtual void typeout(const std::string& tag, const std::string& message) { this->PutFullString(tag, message); } }; } #endif