Home
last modified time | relevance | path

Searched refs:Logger (Results 1 – 25 of 33) sorted by relevance

12

/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));
76 Logger::Destroy();
77 EXPECT_FALSE(Logger::IsLoggingOn(Logger::Level::FATAL, Logger::Component::ALLOC));
95 panda::Logger::ComponentMask component_mask;
96 component_mask.set(Logger::Component::COMPILER);
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));
[all …]
Dcode_allocator_test.cpp31 Logger::Destroy(); in ~CodeAllocatorTest()
/arkcompiler/runtime_core/libpandabase/utils/
Dlogger.cpp31 Logger *Logger::logger = nullptr;
32 thread_local int Logger::nesting = 0;
36 void Logger::Initialize(const base_options::Options &options) in Initialize()
38 panda::Logger::ComponentMask component_mask; in Initialize()
41 component_mask |= Logger::ComponentMaskFromString(s); in Initialize()
69 level = Logger::LevelFromString(options.GetLogLevel()); in Initialize()
73 Logger::InitializeHiLogging(level, component_mask); in Initialize()
78 Logger::InitializeStdLogging(level, component_mask); in Initialize()
81Logger::InitializeFileLogging(file_name, level, component_mask, options.GetLogStream() == "fast-fi… in Initialize()
83 Logger::InitializeDummyLogging(level, component_mask); in Initialize()
[all …]
Dlogger.h52 class Logger {
113 Logger::LogNestingInc(); in Message()
153 static uint32_t GetLevelNumber(Logger::Level level);
280 Logger(Level level, ComponentMask component_mask) in Logger() function
291 Logger(Level level, ComponentMask component_mask, [[maybe_unused]] Level nested_allowed_level) in Logger() function
309 virtual ~Logger() = default;
311 static Logger *logger;
330 NO_COPY_SEMANTIC(Logger);
331 NO_MOVE_SEMANTIC(Logger);
334 static Logger::ComponentMask LoggerComponentMaskAll = ~Logger::ComponentMask();
[all …]
/arkcompiler/runtime_core/libpandabase/templates/
Dlogger_impl_gen.inc.erb18 static const char *GetComponentTag(Logger::Component component)
21 if (component == Logger::Component::<%= c.enum %>) {
29 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 %>;
53 Logger::ComponentMask Logger::ComponentMaskFromString(std::string_view s)
57 return panda::Logger::ComponentMask().set(Logger::Component::<%= c.enum %>);
69 std::string Logger::StringfromDfxComponent(LogDfxComponent dfx_component)
73 case Logger::LogDfxComponent::<%= c.enum %>:
[all …]
/arkcompiler/runtime_core/disassembler/
Ddisasm.cpp73 panda::Logger::InitializeStdLogging( in ProcessArgs()
74 panda::Logger::Level::DEBUG, in ProcessArgs()
75 panda::Logger::ComponentMask().set(panda::Logger::Component::DISASSEMBLER)); in ProcessArgs()
77 panda::Logger::InitializeFileLogging( in ProcessArgs()
78 debug_file.GetValue(), panda::Logger::Level::DEBUG, in ProcessArgs()
79 panda::Logger::ComponentMask().set(panda::Logger::Component::DISASSEMBLER)); in ProcessArgs()
82 panda::Logger::InitializeStdLogging(panda::Logger::Level::ERROR, in ProcessArgs()
83 … panda::Logger::ComponentMask().set(panda::Logger::Component::DISASSEMBLER)); in ProcessArgs()
/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()
/arkcompiler/ets_runtime/ecmascript/
Dlog.cpp188 case Logger::PandaLog2MobileLog::VERBOSE: in PrintLogger()
191 case Logger::PandaLog2MobileLog::DEBUG: in PrintLogger()
194 case Logger::PandaLog2MobileLog::INFO: in PrintLogger()
197 case Logger::PandaLog2MobileLog::WARN: in PrintLogger()
200 case Logger::PandaLog2MobileLog::ERROR: in PrintLogger()
203 case Logger::PandaLog2MobileLog::FATAL: in PrintLogger()
240 Logger::Initialize(baseOptions); in Initialize()
241 Logger::SetMobileLogPrintEntryPointByPtr(reinterpret_cast<void *>(Log::PrintLogger)); in Initialize()
/arkcompiler/runtime_core/assembler/
Dpandasm.cpp85 panda::Logger::ComponentMask component_mask; in PrepareArgs()
86 component_mask.set(panda::Logger::Component::ASSEMBLER); in PrepareArgs()
87 component_mask.set(panda::Logger::Component::BYTECODE_OPTIMIZER); in PrepareArgs()
88 panda::Logger::InitializeStdLogging(panda::Logger::Level::DEBUG, component_mask); in PrepareArgs()
90 panda::Logger::ComponentMask component_mask; in PrepareArgs()
91 component_mask.set(panda::Logger::Component::ASSEMBLER); in PrepareArgs()
92 component_mask.set(panda::Logger::Component::BYTECODE_OPTIMIZER); in PrepareArgs()
93 …panda::Logger::InitializeFileLogging(log_file.GetValue(), panda::Logger::Level::DEBUG, component_m… in PrepareArgs()
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
Dparser509546_1.ts22 export class Logger {
Dparser509546.ts22 export class Logger {
Dparser509546_2.ts24 export class Logger {
/arkcompiler/runtime_core/compiler/tests/
Dunit_test.h299 void EnableLogs(Logger::Level level = Logger::Level::DEBUG)
301 Logger::EnableComponent(Logger::Component::COMPILER);
302 Logger::SetLevel(level);
Dunit_test.cpp63 Logger::InitializeDummyLogging(); in PandaRuntimeTest()
Dencoders_test.cpp42 Logger::Destroy(); in ~EncoderArm64VixlTest()
/arkcompiler/runtime_core/tests/cts-generator/generator/
Dgenerator.rb25 LOG = Logger.new(STDOUT)
/arkcompiler/runtime_core/tests/cts-generator/
Dgenerate-cts.rb83 LOG = Logger.new(STDOUT)
/arkcompiler/runtime_core/libpandabase/events/
Devents_gen.h.erb182 Logger::EnableComponent(Logger::EVENTS);
185 Logger::DisableComponent(Logger::EVENTS);
/arkcompiler/ets_frontend/es2panda/util/
Dhelpers.cpp645 const uint32_t COMPONENT_MASK = panda::Logger::Component::ASSEMBLER | in OptimizeProgram()
646 panda::Logger::Component::BYTECODE_OPTIMIZER | in OptimizeProgram()
647 panda::Logger::Component::COMPILER; in OptimizeProgram()
648 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()
125 … panda::Logger::ComponentMask().set(Logger::Component::BYTECODE_OPTIMIZER)); in CommonTest()
135 Logger::Destroy(); in ~CommonTest()
/arkcompiler/runtime_core/compiler/tests/aarch64/
Dcallconv64_test.cpp49 Logger::Destroy(); in ~Callconv64Test()
/arkcompiler/runtime_core/compiler/tests/amd64/
Dcallconv64_test.cpp49 Logger::Destroy(); in ~Callconv64Test()
/arkcompiler/runtime_core/panda/
Dpanda.cpp172 Logger::Initialize(base_options); in Main()
/arkcompiler/ets_frontend/ts2panda/ts2abc/
Dts2abc.cpp1451 panda::Logger::ComponentMask mask; in EmitProgram()
1452 mask.set(panda::Logger::Component::ASSEMBLER); in EmitProgram()
1453 mask.set(panda::Logger::Component::BYTECODE_OPTIMIZER); in EmitProgram()
1454 mask.set(panda::Logger::Component::COMPILER); in EmitProgram()
1455 panda::Logger::InitializeStdLogging(panda::Logger::LevelFromString(optLogLevel), mask); in EmitProgram()

12