Lines Matching refs:level
109 Message(Level level, Component component, bool print_system_error) in Message() argument
110 : level_(level), component_(component), print_system_error_(print_system_error) in Message()
136 …static void InitializeFileLogging(const std::string &log_file, Level level, ComponentMask componen…
139 static void InitializeHiLogging(Level level, ComponentMask component_mask);
142 static void InitializeStdLogging(Level level, ComponentMask component_mask);
144 … static void InitializeDummyLogging(Level level = Level::DEBUG, ComponentMask component_mask = 0);
153 static uint32_t GetLevelNumber(Logger::Level level);
155 void WriteMobileLog(Level level, const char *component, const char *message) in WriteMobileLog() argument
161 switch (level) { in WriteMobileLog()
184 static bool IsLoggingOn(Level level, Component component) in IsLoggingOn() argument
186 return IsInitialized() && level <= logger->level_ && in IsLoggingOn()
187 (logger->component_mask_.test(component) || level == Level::FATAL); in IsLoggingOn()
190 static bool IsLoggingOnOrAbort(Level level, Component component) in IsLoggingOnOrAbort() argument
192 if (IsLoggingOn(level, component)) { in IsLoggingOnOrAbort()
196 if (level == Level::FATAL) { in IsLoggingOnOrAbort()
206 …static bool IsMessageSuppressed([[maybe_unused]] Level level, [[maybe_unused]] Component component…
209 static void Log(Level level, Component component, const std::string &str);
224 static void SetLevel(Level level) in SetLevel() argument
227 logger->level_ = level; in SetLevel()
280 Logger(Level level, ComponentMask component_mask) in Logger() argument
281 : level_(level), in Logger()
291 Logger(Level level, ComponentMask component_mask, [[maybe_unused]] Level nested_allowed_level) in Logger() argument
292 : level_(level), in Logger()
301 virtual void LogLineInternal(Level level, Component component, const std::string &str) = 0;
338 FileLogger(std::ofstream &&stream, Level level, ComponentMask component_mask) in FileLogger() argument
339 : Logger(level, component_mask), stream_(std::forward<std::ofstream>(stream)) in FileLogger()
343 void LogLineInternal(Level level, Component component, const std::string &str) override;
360 FastFileLogger(std::ofstream &&stream, Level level, ComponentMask component_mask) in FastFileLogger() argument
361 …: Logger(level, component_mask, Logger::Level::WARNING), stream_(std::forward<std::ofstream>(strea… in FastFileLogger()
365 void LogLineInternal(Level level, Component component, const std::string &str) override;
382 HiLogger(Level level, ComponentMask component_mask) : Logger(level, component_mask) {} in HiLogger() argument
384 void LogLineInternal(Level level, Component component, const std::string &str) override;
404 StderrLogger(Level level, ComponentMask component_mask) : Logger(level, component_mask) {} in StderrLogger() argument
406 void LogLineInternal(Level level, Component component, const std::string &str) override;
419 DummyLogger(Level level, ComponentMask component_mask) : Logger(level, component_mask) {} in DummyLogger() argument
421 void LogLineInternal([[maybe_unused]] Level level, [[maybe_unused]] Component component, in LogLineInternal() argument
466 #define LOG_ONCE(level, component) \ argument
468 MERGE_WORDS(log_once_helper, __LINE__).IsFirstCall() && LOG(level, component)
472 #define _LOG_SUPPRESSION_CHECK(level, component) \ argument
473 …!panda::Logger::IsMessageSuppressed(panda::Logger::Level::level, panda::Logger::Component::compone…
476 #define _LOG_SUPPRESSION_CHECK(level, component) true argument
482 #define _LOG(level, component, p) … argument
483 …panda::Logger::IsLoggingOnOrAbort(panda::Logger::Level::level, panda::Logger::Component::component…
484 …_LOG_SUPPRESSION_CHECK(level, component) && …
485 …panda::Logger::Message(panda::Logger::Level::level, panda::Logger::Component::component, p).GetStr…
488 #define LOG_TRANSFORM(level, component) _LOG_##level(component, false) argument
489 #define LOG(level, component) LOG_TRANSFORM(level, component) argument
492 #define GET_LOG_STREAM(level, component) \ argument
493 …panda::Logger::Message(panda::Logger::Level::level, panda::Logger::Component::component, false).Ge…
496 #define PLOG(level, component) _LOG_##level(component, true) argument
499 #define LOG_IF(cond, level, component) (cond) && LOG(level, component) argument
502 #define PLOG_IF(cond, level, component) (cond) && PLOG(level, component) argument