8 #include <boost/thread/thread.hpp> 14 namespace pipe_log_engine
27 void operator()(
const std::string& _msg,
const std::string& _id =
"**",
bool _debugMsg =
false)
const;
28 void debug_msg(
const std::string& _msg,
const std::string& _id =
"**")
const 34 m_debugMode = _dbgFlag;
38 void thread_worker(
int _fd,
const std::string& _pipename);
39 void logMsg(
const std::string& _msg);
43 boost::thread* m_thread;
44 std::string m_pipeName;
46 volatile sig_atomic_t m_stopLogEngine;
void setDbgFlag(bool _dbgFlag)
Definition: PipeLogEngine.h:32
void stop()
Definition: PipeLogEngine.cpp:57
void operator()(const std::string &_msg, const std::string &_id="**", bool _debugMsg=false) const
Definition: PipeLogEngine.cpp:80
void start(const std::string &_pipeFilePath, onLogEvent_t _callback=nullptr)
Definition: PipeLogEngine.cpp:35
Miscellaneous functions and helpers are located here.
Definition: AgentConnectionManager.h:13
void debug_msg(const std::string &_msg, const std::string &_id="**") const
Definition: PipeLogEngine.h:28
~CLogEngine()
Definition: PipeLogEngine.cpp:30
Definition: PipeLogEngine.h:16
std::function< void(const std::string &)> onLogEvent_t
Definition: PipeLogEngine.h:19
CLogEngine(bool _debugMode=false)
Definition: PipeLogEngine.cpp:21