Home
last modified time | relevance | path

Searched refs:AccountLogLevel (Results 1 - 4 of 4) sorted by relevance

/base/account/os_account/frameworks/common/log/include/
H A Daccount_log_wrapper.h30 enum class AccountLogLevel { DEBUG = 0, INFO, WARN, ERROR, FATAL }; class
35 static bool JudgeLevel(const AccountLogLevel &level);
37 static void SetLogLevel(const AccountLogLevel &level) in SetLogLevel()
42 static const AccountLogLevel &GetLogLevel() in GetLogLevel()
50 static AccountLogLevel level_;
/base/account/os_account/frameworks/common/log/src/
H A Daccount_log_wrapper.cpp21 AccountLogLevel AccountLogWrapper::level_ = AccountLogLevel::INFO;
23 bool AccountLogWrapper::JudgeLevel(const AccountLogLevel& level) in JudgeLevel()
/base/account/os_account/frameworks/common/test/unittest/common_account_test/
H A Daccount_log_test.cpp57 * @tc.expected: step1. The default log level is AccountLogLevel::INFO in HWTEST_F()
59 EXPECT_EQ(AccountLogLevel::INFO, AccountLogWrapper::GetLogLevel()); in HWTEST_F()
63 * @tc.expected: step2. Get log level is AccountLogLevel::DEBUG in HWTEST_F()
65 AccountLogWrapper::SetLogLevel(AccountLogLevel::DEBUG); in HWTEST_F()
66 EXPECT_EQ(AccountLogLevel::DEBUG, AccountLogWrapper::GetLogLevel()); in HWTEST_F()
/base/account/os_account/dfx/hidumper_adapter/
H A Daccount_dump_helper.cpp202 if ((level < static_cast<std::int32_t>(AccountLogLevel::DEBUG)) || in SetLogLevel()
203 (level > static_cast<std::int32_t>(AccountLogLevel::FATAL))) { in SetLogLevel()
206 AccountLogLevel logLevel = static_cast<AccountLogLevel>(level); in SetLogLevel()

Completed in 2 milliseconds