/base/security/selinux_adapter/interfaces/policycoreutils/src/ |
D | selinux_klog.c | 31 void SetSelinuxKmsgLevel(int logLevel) in SetSelinuxKmsgLevel() argument 33 g_logLevel = logLevel; in SetSelinuxKmsgLevel() 46 int SelinuxKmsg(int logLevel, const char *fmt, ...) in SelinuxKmsg() argument 48 if (logLevel != SELINUX_KAVC && logLevel > g_logLevel) { in SelinuxKmsg() 52 if ((logLevel < 0) || (logLevel >= MAX_LEVEL_SIZE)) { in SelinuxKmsg() 73 if (logLevel != SELINUX_KAVC) { in SelinuxKmsg() 75 LOG_LEVEL_STR[logLevel], tmpFmt); in SelinuxKmsg()
|
D | selinux_log.c | 30 void SetSelinuxHilogLevel(int logLevel) in SetSelinuxHilogLevel() argument 32 g_logLevel = logLevel; in SetSelinuxHilogLevel() 35 int SelinuxHilog(int logLevel, const char *fmt, ...) in SelinuxHilog() argument 37 if (logLevel != SELINUX_HILOG_AVC && logLevel > g_logLevel) { in SelinuxHilog() 59 switch (logLevel) { in SelinuxHilog()
|
/base/startup/init/services/log/ |
D | init_log.c | 73 void LogToDmesg(InitLogLevel logLevel, const char *tag, const char *info) in LogToDmesg() argument 86 LOG_KLEVEL_STR[logLevel], getpid(), tag, LOG_LEVEL_STR[logLevel], info) == -1) { in LogToDmesg() 98 static void PrintLog(InitLogLevel logLevel, unsigned int domain, const char *tag, const char *logIn… in PrintLog() argument 102 (void)HiLogPrint(INIT_LOG_INIT, LOG_LEVEL[logLevel], domain, tag, "%s", logInfo); in PrintLog() 105 LogToDmesg(logLevel, tag, logInfo); in PrintLog() 109 HiLogBasePrint(LOG_CORE, LOG_LEVEL[logLevel], domain, tag, "%{public}s", logInfo); in PrintLog() 116 static void PrintLogFmt(int logLevel, unsigned int domain, const char *tag, const char *fmt, va_lis… in PrintLogFmt() argument 123 PrintLog((InitLogLevel)logLevel, domain, tag, tmpFmt); in PrintLogFmt() 126 INIT_LOCAL_API void InitLog(int logLevel, unsigned int domain, const char *tag, const char *fmt, va… in InitLog() argument 128 if ((int)g_logLevel > logLevel) { in InitLog() [all …]
|
D | init_commlog.c | 24 INIT_PUBLIC_API void StartupLog(InitLogLevel logLevel, uint32_t domain, const char *tag, const char… in StartupLog() argument 29 g_initCommLog(logLevel, domain, tag, fmt, vargs); in StartupLog()
|
/base/hiviewdfx/faultloggerd/common/dfxlog/ |
D | dfx_log.cpp | 37 static void LogToDmesg(Level logLevel, const char *tag, const char *info) in LogToDmesg() argument 47 LOG_KLEVEL_STR[logLevel], getpid(), getppid(), tag, LOG_LEVEL_STR[logLevel], info) == -1) { in LogToDmesg() 69 int DfxLog(const Level logLevel, const unsigned int domain, const char* tag, const char *fmt, ...) in DfxLog() argument 71 if (logLevel < CURRENT_LOG_LEVEL) { in DfxLog() 83 if ((logLevel < Level::DEBUG) || (logLevel > Level::FATAL)) { in DfxLog() 86 HiLogBasePrint(LOG_CORE, LOG_LEVEL[logLevel], domain, tag, "%{public}s", buf); in DfxLog() 89 switch (static_cast<int>(logLevel)) { in DfxLog() 111 LogToDmesg(logLevel, tag, buf); in DfxLog()
|
D | musl_log.h | 71 const LogLevel logLevel, const unsigned int domain, const char* tag, const char *fmt, ...) in DfxLog() argument 79 MuslHiLogPrinter(LOG_CORE, logLevel, domain, tag, "%{public}s", buf); in DfxLog()
|
/base/update/updater/services/flashd/daemon/ |
D | flashd_main.cpp | 45 int logLevel = atoi(arg.c_str() + strlen("-l")); in FlashdMain() local 46 if (logLevel < 0 || logLevel > LOG_LAST) { in FlashdMain() 47 logLevel = LOG_LAST; in FlashdMain() 49 Base::SetLogLevel(logLevel); in FlashdMain()
|
/base/startup/init/services/begetctl/ |
D | setloglevel.c | 53 char logLevel[2] = {0}; // 2 is set param "persist.init.debug.loglevel" value length. in GetInitLogLevelFromParam() local 54 uint32_t len = sizeof(logLevel); in GetInitLogLevelFromParam() 55 int ret = SystemReadParam("persist.init.debug.loglevel", logLevel, &len); in GetInitLogLevelFromParam() 57 …intf("Success to get init log level: %s from param \"persist.init.debug.loglevel\". \n", logLevel); in GetInitLogLevelFromParam()
|
/base/security/selinux_adapter/interfaces/policycoreutils/include/ |
D | selinux_klog.h | 31 void SetSelinuxKmsgLevel(int logLevel); 32 int SelinuxKmsg(int logLevel, const char *fmt, ...);
|
D | selinux_log.h | 32 void SetSelinuxHilogLevel(int logLevel); 33 int SelinuxHilog(int logLevel, const char *fmt, ...);
|
/base/security/huks/test/unittest/huks_lite_test/common/ |
D | hks_test_log.c | 25 void HksTestLog(uint32_t logLevel, const char *funcName, int32_t lineNo, const char *format, ...) in HksTestLog() argument 38 switch (logLevel) { in HksTestLog()
|
/base/security/huks/frameworks/crypto_lite/cipher/src/ |
D | cipher_log.c | 24 void CipherLog(uint32_t logLevel, const char *funcName, uint32_t lineNo, const char *format, ...) in CipherLog() argument 44 switch (logLevel) { in CipherLog()
|
D | cipher_log_lite.c | 25 void CipherLog(uint32_t logLevel, const char *funcName, uint32_t lineNo, const char *format, ...) in CipherLog() argument 45 switch (logLevel) { in CipherLog()
|
/base/security/certificate_framework/frameworks/common/v1.0/src/ |
D | cf_log.c | 27 void CfLog(uint32_t logLevel, const char *funcName, uint32_t lineNo, const char *format, ...) in CfLog() argument 40 switch (logLevel) { in CfLog()
|
/base/account/os_account/test/fuzztest/account_stub/cmdgetohosaccountinfostub_fuzzer/ |
D | cmdgetohosaccountinfostub_fuzzer.cpp | 36 static int SelinuxLog(int logLevel, const char *fmt, ...) in SelinuxLog() argument 38 (void)logLevel; in SelinuxLog()
|
/base/security/certificate_manager/frameworks/cert_manager_standard/main/os_dependency/log/ |
D | cm_log.c | 30 void CmLog(uint32_t logLevel, const char *funcName, uint32_t lineNo, const char *format, ...) in CmLog() argument 49 switch (logLevel) { in CmLog()
|
/base/account/os_account/test/fuzztest/account_stub/cmdqueryohosaccountinfostub_fuzzer/ |
D | cmdqueryohosaccountinfostub_fuzzer.cpp | 36 static int SelinuxLog(int logLevel, const char *fmt, ...) in SelinuxLog() argument 38 (void)logLevel; in SelinuxLog()
|
/base/account/os_account/test/fuzztest/account_stub/cmdqueryohosaccountinfobyuseridstub_fuzzer/ |
D | cmdqueryohosaccountinfobyuseridstub_fuzzer.cpp | 36 static int SelinuxLog(int logLevel, const char *fmt, ...) in SelinuxLog() argument 38 (void)logLevel; in SelinuxLog()
|
/base/hiviewdfx/hilog/test/unittest/common/ |
D | hilog_utils_test.cpp | 131 const LogLevel logLevel; member 150 EXPECT_EQ(LogLevel2Str(logLevelEntries[i].logLevel), logLevelEntries[i].str); 151 EXPECT_EQ(Str2LogLevel(logLevelEntries[i].str), logLevelEntries[i].logLevel); 152 EXPECT_EQ(LogLevel2ShortStr(logLevelEntries[i].logLevel), logLevelEntries[i].shortStr); 153 EXPECT_EQ(ShortStr2LogLevel(logLevelEntries[i].shortStr), logLevelEntries[i].logLevel);
|
/base/security/huks/frameworks/crypto_lite/cipher/include/ |
D | cipher_log.h | 41 void CipherLog(uint32_t logLevel, const char *funcName, uint32_t lineNo, const char *format, ...);
|
/base/startup/init/interfaces/innerkits/include/ |
D | beget_ext.h | 71 INIT_PUBLIC_API void StartupLog(InitLogLevel logLevel, uint32_t domain, const char *tag, const char… 117 #define InitLogPrint(outFileName, logLevel, kLevel, fmt, ...) \ argument 118 StartupLog(logLevel, BEGET_DOMAIN, kLevel, fmt, ##__VA_ARGS__)
|
/base/startup/init/services/modules/init_hook/ |
D | init_hook.c | 209 char logLevel[2] = {0}; // 2 is set param "persist.init.debug.loglevel" value length. in InitLogLevelFromPersist() local 210 uint32_t len = sizeof(logLevel); in InitLogLevelFromPersist() 211 int ret = SystemReadParam(INIT_DEBUG_LEVEL, logLevel, &len); in InitLogLevelFromPersist() 213 SetLogLevelFunc(logLevel); in InitLogLevelFromPersist()
|
/base/account/os_account/dfx/hidumper_adapter/ |
D | account_dump_helper.cpp | 181 auto logLevel = static_cast<std::int32_t>(AccountLogWrapper::GetLogLevel()); in ProcessOneParameter() local 182 result.append("Current Log Level: " + std::to_string(logLevel) + "\n"); in ProcessOneParameter() 202 AccountLogLevel logLevel = static_cast<AccountLogLevel>(level); in SetLogLevel() local 203 AccountLogWrapper::SetLogLevel(logLevel); in SetLogLevel()
|
/base/hiviewdfx/hilog/frameworks/libhilog/base/ |
D | hilog_base.cpp | 176 …ildHilogMessageForOhCore(struct HiLogMsgInfo* logMsgInfo, LogHeader& logHeader, uint16_t& logLevel, in BuildHilogMessageForOhCore() argument 185 logLevel = logMsgInfo->header_->level; in BuildHilogMessageForOhCore() 194 vec[1].iov_base = reinterpret_cast<unsigned char *>(&logLevel); // 1 : index of log level in BuildHilogMessageForOhCore() 239 uint16_t logLevel = 0; in SendMessage() local 242 BuildHilogMessageForOhCore(&msgInfo, logHeader, logLevel, tagBuf, vec) : in SendMessage()
|
/base/hiviewdfx/hilog_lite/frameworks/js/builtin/src/ |
D | hilog_module.cpp | 317 JSIValue logLevel = JSI::CreateObject(); in InitLogLevelType() local 318 JSI::SetNumberProperty(logLevel, "DEBUG", LogLevel::LOG_DEBUG); in InitLogLevelType() 319 JSI::SetNumberProperty(logLevel, "INFO", LogLevel::LOG_INFO); in InitLogLevelType() 320 JSI::SetNumberProperty(logLevel, "WARN", LogLevel::LOG_WARN); in InitLogLevelType() 321 JSI::SetNumberProperty(logLevel, "ERROR", LogLevel::LOG_ERROR); in InitLogLevelType() 322 JSI::SetNumberProperty(logLevel, "FATAL", LogLevel::LOG_FATAL); in InitLogLevelType() 323 JSI::SetNamedProperty(target, "LogLevel", logLevel); in InitLogLevelType()
|