RTI Recording Service  Version 6.1.2
Logger.hpp
1 /*
2  * (c) Copyright, Real-Time Innovations, 2017.
3  * All rights reserved.
4  *
5  * No duplications, whole or partial, manual or electronic, may be made
6  * without express written permission. Any such copies, or
7  * revisions thereof, must display this notice unaltered.
8  * This code contains trade secrets of Real-Time Innovations, Inc.
9  */
10 
11 #ifndef RTI_RECORDING_LOGGER_HPP_
12 #define RTI_RECORDING_LOGGER_HPP_
13 
14 #include "recordingservice/recordingservice_dll.h"
15 
16 #include <dds/core/Reference.hpp>
17 #include <rti/config/Logger.hpp>
18 
19 
20 namespace rti { namespace recording {
21 
30 class RECORDERDllExport Logger
31 {
32 public:
33 
34  typedef rti::config::Verbosity Verbosity;
35  typedef rti::config::LogCategory LogCategory;
36  typedef rti::config::LoggerMode LoggerMode;
37  typedef rti::config::PrintFormat PrintFormat;
38 
39  static Logger& instance();
40 
53  void error(const std::string& msg);
54 
58  void error(const char *msg);
59 
71  void warn(const std::string& msg);
72 
76  void warn(const char *msg);
77 
89  void local(const std::string& msg);
90 
94  void local(const char *msg);
95 
107  void remote(const std::string& msg);
108 
112  void remote(const char *msg);
113 
125  void debug(const std::string& msg);
126 
130  void debug(const char *msg);
131 
139  void service_verbosity(rti::config::Verbosity verbosity);
140 
146  rti::config::Verbosity service_verbosity();
147 
152  void verbosity(rti::config::Verbosity verbosity);
153 
158  rti::config::Verbosity verbosity();
159 
160  virtual ~Logger();
161 
162 private:
163 
164  void message(const rti::config::LogLevel& level, const char* msg);
165 
166  Logger();
167 
168  // Disable copy
169  Logger(const Logger&);
170  Logger& operator=(const Logger&);
171 };
172 
173 }}
174 
175 #endif // RTI_RECORDING_LOGGER_HPP_
The singleton type used to configure RTI Recording Service verbosity.
Definition: Logger.hpp:30
The RTI namespace.
Definition: RecordingServiceImpl.hpp:22