CommunicationLogger.h 371 B

1234567891011121314151617181920
  1. #pragma once
  2. namespace DIOS::Dev::Detail::MachineryECOM
  3. {
  4. class CommunicationLogger
  5. {
  6. public:
  7. CommunicationLogger();
  8. ~CommunicationLogger();
  9. public:
  10. static CommunicationLogger *Instance();
  11. void Initialize(const std::string &workpath);
  12. SimpleLog *&Get(){ return m_logger; }
  13. private:
  14. static CommunicationLogger *m_instance;
  15. SimpleLog *m_logger;
  16. };
  17. }