#ifndef __UT_LOG_INITOR_HPP__ #define __UT_LOG_INITOR_HPP__ #include #include #include namespace unitree { namespace common { class LogInitor { public: explicit LogInitor(); ~LogInitor(); void Init(const std::string& configFileName, bool stdoutDefault = false); Logger* GetLogger(const std::string& tag); void Final(); void ParseConf(Any json); void SetStdoutPolicy(); void InitLogger(); private: std::set mStoreNames; std::vector mPolicis; std::vector mStorePolicis; std::map mLoggerMap; }; using LogInitorPtr = std::shared_ptr; void LogInit(const std::string& configFileName = "", bool stdoutDefault = false); void LogFinal(); Logger* GetLogger(const std::string& tag); } } #endif//__UT_LOG_INITOR_HPP__