OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ServiceLogNotifier.h
Go to the documentation of this file.
1#pragma once
2
3#include "OTCore/Logger.h"
4#include "OTCore/Flags.h"
7
8#include <string>
9#include <ostream>
10#include <mutex>
11#include <list>
12
13#pragma warning (disable: 4251)
14
15namespace ot {
16
18 public:
19 static ServiceLogNotifier& instance(void);
20 static ServiceLogNotifier& initialize(const std::string& _serviceName, const std::string& _loggingServiceUrl, bool _addCoutReceiver = false);
21
22 // ###################################################################################################################################
23
24 // Setter/Getter
25
26 void setLoggingServiceURL(const std::string& _url);
27 const std::string& loggingServiceURL(void) const { return m_loggingServiceURL; };
28
29 // ###################################################################################################################################
30
31 void log(const LogMessage& _message);
32
33 private:
34 std::string m_loggingServiceURL;
35
37 virtual ~ServiceLogNotifier();
38
40 ServiceLogNotifier& operator = (ServiceLogNotifier&) = delete;
41 };
42
43}
#define OT_COMMUNICATION_API_EXPORT
Definition CommunicationAPIExport.h:6
OpenTwin Logging system.
Used to receive every log message that is generated.
Definition Logger.h:431
Contains information about the origin and the content of a log message.
Definition Logger.h:345
Definition ServiceLogNotifier.h:17
const std::string & loggingServiceURL(void) const
Definition ServiceLogNotifier.h:27
Definition Connector.h:8