LoggingImpl.h
Go to the documentation of this file.
1 
20 #ifndef LOGGINGIMPL_H_CF00F49B
21 #define LOGGINGIMPL_H_CF00F49B
22 
23 #include "uscxml/config.h"
24 #include "uscxml/Common.h"
25 
26 #include "Logging.h"
27 
28 #include "uscxml/messages/Data.h"
29 #include "uscxml/messages/Event.h"
30 
31 namespace uscxml {
32 
36 class USCXML_API LoggerImpl {
37 public:
38 
39  LoggerImpl() {}
40  virtual std::shared_ptr<LoggerImpl> create() = 0;
41 
42  virtual void log(LogSeverity severity, const Event& event) = 0;
43  virtual void log(LogSeverity severity, const Data& data) = 0;
44  virtual void log(LogSeverity severity, const std::string& message) = 0;
45 
46  static std::shared_ptr<LoggerImpl> getDefault();
47 
48 private:
49  static std::shared_ptr<LoggerImpl> _defaultLogger;
50 };
51 
52 }
53 
54 #endif /* end of include guard: LOGGINGIMPL_H_CF00F49B */
Definition: Breakpoint.cpp:26
Definition: LoggingImpl.h:36
Definition: Event.h:94
Definition: Data.h:44