1 #ifndef EUDAQ_INCLUDED_LogSender
2 #define EUDAQ_INCLUDED_LogSender
4 #include "eudaq/TransportClient.hh"
5 #include "eudaq/Serializer.hh"
6 #include "eudaq/Status.hh"
7 #include "eudaq/Mutex.hh"
19 void Connect(
const std::string &type,
const std::string &name,
20 const std::string &server);
23 void SendLogMessage(
const LogMessage &msg, std::ostream &out,
24 std::ostream &error_out);
25 void SetLevel(
int level) { m_level = level; }
26 void SetLevel(
const std::string &level) {
27 SetLevel(Status::String2Level(level));
29 void SetErrLevel(
int level) { m_errlevel = level; }
30 void SetErrLevel(
const std::string &level) {
31 SetErrLevel(Status::String2Level(level));
33 bool IsLogged(
const std::string &level) {
34 return Status::String2Level(level) >= m_level;
42 bool m_shownotconnected;
43 bool isConnected =
false;
48 #endif // EUDAQ_INCLUDED_LogSender
Definition: LogSender.hh:15
Definition: LogMessage.hh:15
Definition: TransportClient.hh:9