#pragma once #include #include #include #include #include #include "flogger.h" class ServerLogElement : public TimerElement { public: ServerLogElement(); public: static void initial(); const static ServerLogElement& instance(){ static ServerLogElement l_instance; return l_instance; } private: void error(const std::string& log); void info(const std::string& log); DoubleBufferedVector _buffer_error; DoubleBufferedVector _buffer_info; FLogger _floger; private: virtual void timer_func() override; };