Home
last modified time | relevance | path

Searched refs:Level (Results 1 – 17 of 17) sorted by relevance

/arkcompiler/runtime_core/libpandabase/utils/
Dlogger.h109 Message(Level level, Component component, bool print_system_error) in Message()
125 Level level_;
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()
162 case Level::DEBUG: in WriteMobileLog()
165 case Level::INFO: in WriteMobileLog()
[all …]
Dlogger.cpp44 Level level = Level::LAST; in Initialize()
47 ASSERT_PRINT(level == Level::LAST, "There are conflicting logger options"); in Initialize()
49 level = Level::FATAL; in Initialize()
51 ASSERT_PRINT(level == Level::LAST, "There are conflicting logger options"); in Initialize()
53 level = Level::ERROR; in Initialize()
55 ASSERT_PRINT(level == Level::LAST, "There are conflicting logger options"); in Initialize()
57 level = Level::WARNING; in Initialize()
59 ASSERT_PRINT(level == Level::LAST, "There are conflicting logger options"); in Initialize()
61 level = Level::INFO; in Initialize()
63 ASSERT_PRINT(level == Level::LAST, "There are conflicting logger options"); in Initialize()
[all …]
/arkcompiler/ets_runtime/ecmascript/
Dlog.cpp27 Level ConvertToLevel(LogLevel hilogLevel) in ConvertToLevel()
29 Level level = Level::ERROR; in ConvertToLevel()
33 level = Level::INFO; in ConvertToLevel()
36 level = Level::WARN; in ConvertToLevel()
39 level = Level::ERROR; in ConvertToLevel()
43 level = Level::FATAL; in ConvertToLevel()
47 level = Level::DEBUG; in ConvertToLevel()
66 Level Log::level_ = Level::ERROR;
69 Level Log::ConvertFromRuntime(LOG_LEVEL level) in ConvertFromRuntime()
71 Level logLevel = Level::INFO; in ConvertFromRuntime()
[all …]
Dlog.h31 enum Level { enum
72 static inline bool LogIsLoggable(Level level, Component component) in LogIsLoggable()
102 static std::string LevelToString(Level level);
103 static Level ConvertFromRuntime(LOG_LEVEL level);
110 static Level level_;
151 template<Level level>
172 template<Level level, Component component>
/arkcompiler/runtime_core/libpandabase/tests/
Dlogger_test.cpp40 EXPECT_FALSE(Logger::IsLoggingOn(Logger::Level::FATAL, Logger::Component::ALLOC));
54 Logger::InitializeStdLogging(Logger::Level::DEBUG, panda::LoggerComponentMaskAll);
55 EXPECT_TRUE(Logger::IsLoggingOn(Logger::Level::FATAL, Logger::Component::ALLOC));
77 EXPECT_FALSE(Logger::IsLoggingOn(Logger::Level::FATAL, Logger::Component::ALLOC));
98 Logger::InitializeStdLogging(Logger::Level::FATAL, component_mask);
99 EXPECT_TRUE(Logger::IsLoggingOn(Logger::Level::FATAL, Logger::Component::COMPILER));
100 EXPECT_TRUE(Logger::IsLoggingOn(Logger::Level::FATAL, Logger::Component::ASSEMBLER));
101 EXPECT_TRUE(Logger::IsLoggingOn(Logger::Level::FATAL, Logger::Component::DISASSEMBLER));
102 EXPECT_FALSE(Logger::IsLoggingOn(Logger::Level::ERROR, Logger::Component::COMPILER));
103 EXPECT_FALSE(Logger::IsLoggingOn(Logger::Level::ERROR, Logger::Component::ASSEMBLER));
[all …]
/arkcompiler/runtime_core/libpandabase/templates/
Dlogger_impl_gen.inc.erb29 static const char *GetLevelTag(Logger::Level level)
32 if (level == Logger::Level::<%= l.enum %>) {
41 Logger::Level Logger::LevelFromString(std::string_view s)
45 return panda::Logger::Level::<%= l.enum %>;
110 uint32_t Logger::GetLevelNumber(Logger::Level level)
114 case Logger::Level::<%= l.enum %>:
Dlogger.rb17 class Level class
60 @levels = data.levels.map { |op| Level.new(op) }
Dlogger_enum_gen.h.erb18 enum class Level : uint8_t {
/arkcompiler/toolchain/tooling/test/
Ddebugger_commands_test.cpp36 Logger::InitializeStdLogging(Logger::Level::FATAL, LoggerComponentMaskAll); in SetUpTestCase()
41 Logger::InitializeStdLogging(Logger::Level::ERROR, LoggerComponentMaskAll); in TearDownTestCase()
Ddebugger_events_test.cpp36 Logger::InitializeStdLogging(Logger::Level::FATAL, LoggerComponentMaskAll); in SetUpTestCase()
41 Logger::InitializeStdLogging(Logger::Level::ERROR, LoggerComponentMaskAll); in TearDownTestCase()
Ddebugger_params_test.cpp42 Logger::InitializeStdLogging(Logger::Level::FATAL, LoggerComponentMaskAll); in SetUpTestCase()
47 Logger::InitializeStdLogging(Logger::Level::ERROR, LoggerComponentMaskAll); in TearDownTestCase()
Ddebugger_types_test.cpp42 Logger::InitializeStdLogging(Logger::Level::FATAL, LoggerComponentMaskAll); in SetUpTestCase()
47 Logger::InitializeStdLogging(Logger::Level::ERROR, LoggerComponentMaskAll); in TearDownTestCase()
/arkcompiler/runtime_core/disassembler/
Ddisasm.cpp74 panda::Logger::Level::DEBUG, in ProcessArgs()
78 debug_file.GetValue(), panda::Logger::Level::DEBUG, in ProcessArgs()
82 panda::Logger::InitializeStdLogging(panda::Logger::Level::ERROR, in ProcessArgs()
/arkcompiler/runtime_core/compiler/tests/
Dunit_test.h299 void EnableLogs(Logger::Level level = Logger::Level::DEBUG)
/arkcompiler/runtime_core/assembler/
Dpandasm.cpp88 panda::Logger::InitializeStdLogging(panda::Logger::Level::DEBUG, component_mask); in PrepareArgs()
93 …panda::Logger::InitializeFileLogging(log_file.GetValue(), panda::Logger::Level::DEBUG, component_m… in PrepareArgs()
/arkcompiler/ets_frontend/es2panda/util/
Dhelpers.cpp648 panda::Logger::InitializeStdLogging(panda::Logger::Level::ERROR, COMPONENT_MASK); in OptimizeProgram()
/arkcompiler/runtime_core/bytecode_optimizer/tests/
Dcommon.h124 Logger::InitializeStdLogging(Logger::Level::ERROR, in CommonTest()