Lines Matching defs:DebugLogger
30 DebugLogger::DebugLogger() : timeStamp_(steady_clock::now()), logPath_(DEFAULT_LOG_PATH)
38 savedDebugLevel_ = DebugLogger::GetInstance()->SetLogLevel(level);
39 savedMixOutput_ = DebugLogger::GetInstance()->SetMixLogOutput(mix);
44 DebugLogger::GetInstance()->SetLogLevel(savedDebugLevel_);
45 DebugLogger::GetInstance()->SetMixLogOutput(savedMixOutput_);
48 DebugLogger::~DebugLogger()
57 void DebugLogger::Disable(bool disable)
70 void DebugLogger::HiLog(std::string &buffer) const
81 int DebugLogger::Log(DebugLevel level, const std::string &logTag, const char *fmt, ...) const
137 bool DebugLogger::EnableHiLog(bool enable)
146 bool DebugLogger::ShouldLog(DebugLevel level, const std::string &logtag) const
151 DebugLevel DebugLogger::SetLogLevel(DebugLevel debugLevel)
153 DebugLevel lastLevel = DebugLogger::GetInstance()->debugLevel_;
160 bool DebugLogger::SetMixLogOutput(bool enable)
167 bool DebugLogger::SetLogPath(const std::string &newLogPath)
187 void DebugLogger::SetLogTags(const std::string &tags)
205 DebugLevel DebugLogger::GetLogLevelByTag(const std::string &tag) const
214 const std::string DebugLogger::GetLogLevelName(DebugLevel level) const
219 DebugLevel DebugLogger::GetLogLevelByName(const std::string &name) const
230 bool DebugLogger::OpenLog()
257 __attribute__((weak)) DebugLevel DebugLogger::debugLevel_ = LEVEL_DEBUG;
258 __attribute__((weak)) bool DebugLogger::logDisabled_ = true;
259 std::unique_ptr<DebugLogger> DebugLogger::logInstance_;
261 DebugLogger *DebugLogger::GetInstance()
264 logInstance_ = std::make_unique<DebugLogger>();