Home
last modified time | relevance | path

Searched refs:logLevel (Results 1 – 25 of 40) sorted by relevance

12

/base/security/selinux/interfaces/policycoreutils/src/
Dselinux_klog.c31 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()
Dselinux_log.c30 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/
Dinit_log.c73 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 INIT_LOCAL_API void InitLog(int logLevel, unsigned int domain, const char *tag, const char *fmt, va… in InitLog() argument
118 if ((int)g_logLevel > logLevel) { in InitLog()
126 PrintLog((InitLogLevel)logLevel, domain, tag, tmpFmt); in InitLog()
159 unsigned int logLevel = (unsigned int)strtoul(level, 0, 10); // 10 is decimal in EnableInitLogFromCmdline() local
[all …]
Dinit_commlog.c24 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()
Dinit_log.h39 typedef void (*InitCommLog)(int logLevel, uint32_t domain, const char *tag, const char *fmt, va_lis…
42 INIT_LOCAL_API void InitLog(int logLevel, unsigned int domain, const char *tag, const char *fmt, va…
/base/hiviewdfx/faultloggerd/common/dfxlog/
Ddfx_log.cpp42 void LogToDmesg(Level logLevel, const char *tag, const char *info) in LogToDmesg() argument
52 LOG_KLEVEL_STR[logLevel], getpid(), getppid(), tag, LOG_LEVEL_STR[logLevel], info) == -1) { in LogToDmesg()
74 int DfxLog(const Level logLevel, const unsigned int domain, const char* tag, const char *fmt, ...) in DfxLog() argument
76 if (logLevel < g_LogLevel) { in DfxLog()
87 if ((logLevel < Level::DEBUG) || (logLevel > Level::FATAL)) { in DfxLog()
90 HiLogBasePrint(LOG_CORE, g_LOG_LEVEL[logLevel], domain, tag, "%{public}s", buf); in DfxLog()
92 switch (static_cast<int>(logLevel)) { in DfxLog()
114 LogToDmesg(logLevel, tag, buf); in DfxLog()
Dmusl_log.h71 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/
Dflashd_main.cpp38 int logLevel = atoi(arg.c_str() + strlen("-l")); in flashd_main() local
39 if (logLevel < 0 || logLevel > LOG_LAST) { in flashd_main()
40 logLevel = LOG_LAST; in flashd_main()
42 Base::SetLogLevel(logLevel); in flashd_main()
/base/startup/init/services/begetctl/
Dsetloglevel.c53 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/interfaces/policycoreutils/include/
Dselinux_log.h32 void SetSelinuxHilogLevel(int logLevel);
33 int SelinuxHilog(int logLevel, const char *fmt, ...);
Dselinux_klog.h31 void SetSelinuxKmsgLevel(int logLevel);
32 int SelinuxKmsg(int logLevel, const char *fmt, ...);
/base/security/huks/test/unittest/huks_lite_test/common/
Dhks_test_log.c25 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/
Dcipher_log.c24 void CipherLog(uint32_t logLevel, const char *funcName, uint32_t lineNo, const char *format, ...) in CipherLog() argument
44 switch (logLevel) { in CipherLog()
Dcipher_log_lite.c25 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_manager/frameworks/cert_manager_standard/main/os_dependency/log/
Dcm_log.c30 void CmLog(uint32_t logLevel, const char *funcName, uint32_t lineNo, const char *format, ...) in CmLog() argument
49 switch (logLevel) { in CmLog()
/base/hiviewdfx/hilog/test/unittest/common/
Dhilog_utils_test.cpp131 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/startup/init/services/modules/init_hook/
Dinit_hook.c194 char logLevel[2] = {0}; // 2 is set param "persist.init.debug.loglevel" value length. in InitLogLevelFromPersist() local
195 uint32_t len = sizeof(logLevel); in InitLogLevelFromPersist()
196 int ret = SystemReadParam("persist.init.debug.loglevel", logLevel, &len); in InitLogLevelFromPersist()
199 unsigned int level = (unsigned int)strtoul(logLevel, 0, 10); // 10 is decimal in InitLogLevelFromPersist()
200 INIT_INFO_CHECK(errno == 0, return, "Failed strtoul %s, err=%d", logLevel, errno); in InitLogLevelFromPersist()
/base/startup/init/interfaces/innerkits/include/
Dbeget_ext.h58 INIT_PUBLIC_API void StartupLog(InitLogLevel logLevel, uint32_t domain, const char *tag, const char…
82 #define InitLogPrint(outFileName, logLevel, kLevel, fmt, ...) \ argument
83 StartupLog(logLevel, BEGET_DOMAIN, kLevel, fmt, ##__VA_ARGS__)
/base/security/huks/frameworks/crypto_lite/cipher/include/
Dcipher_log.h41 void CipherLog(uint32_t logLevel, const char *funcName, uint32_t lineNo, const char *format, ...);
/base/account/os_account/dfx/hidumper_adapter/
Daccount_dump_helper.cpp191 auto logLevel = static_cast<std::int32_t>(AccountLogWrapper::GetLogLevel()); in ProcessOneParameter() local
192 result.append("Current Log Level: " + std::to_string(logLevel) + "\n"); in ProcessOneParameter()
212 AccountLogLevel logLevel = static_cast<AccountLogLevel>(level); in SetLogLevel() local
213 AccountLogWrapper::SetLogLevel(logLevel); in SetLogLevel()
/base/hiviewdfx/hilog/frameworks/libhilog/base/
Dhilog_base.cpp176 …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/
Dhilog_module.cpp317 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()
/base/hiviewdfx/hilog_lite/command/
Dhilog_command.h56 bool FilterLevelLog(unsigned char setLevel, unsigned char logLevel);
/base/security/huks/test/unittest/huks_lite_test/common/include/
Dhks_test_log.h34 void HksTestLog(uint32_t logLevel, const char *funcName, int32_t lineNo, const char *format, ...);
/base/security/certificate_manager/frameworks/cert_manager_standard/main/common/include/
Dcm_log.h40 void CmLog(uint32_t logLevel, const char *funcName, uint32_t lineNo, const char *format, ...);

12