Home
last modified time | relevance | path

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

1234

/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/modules/presets/
H A Dconsole_log_impl.cpp51 LogOutLevel(logLevel); in LogNative()
87 LogChar('\n', logLevel, true); in LogNative()
92 void LogOutLevel(const LogLevel logLevel) in LogOutLevel() argument
94 switch (logLevel) { in LogOutLevel()
131 LogChar(str[i], logLevel, false); in LogString()
134 Output(logLevel, str, strlen(str)); in LogString()
148 Output(logLevel, tempBuffer, 1); in LogChar()
165 LogOutLevel(logLevel); in LogChar()
175 switch (logLevel) { in OutputToHiLog()
201 switch (logLevel) { in OutputToHiLog()
[all …]
H A Dconsole_log_impl.h53 void LogString(const LogLevel logLevel, const char * const str);
62 void Output(const LogLevel logLevel, const char * const str, const uint8_t length);
78 jerry_value_t LogNative(const LogLevel logLevel,
87 void LogOutLevel(const LogLevel logLevel);
97 void LogChar(char c, const LogLevel logLevel, bool endFlag = false);
/ohos5.0/base/hiviewdfx/faultloggerd/common/dfxlog/
H A Ddfx_log.cpp39 static void LogToDmesg(const LogLevel logLevel, const char *tag, const char *info) in LogToDmesg() argument
43 int dmesgLevel = static_cast<int>(logLevel) - LOG_DEBUG; in LogToDmesg()
79 void SetLogLevel(const LogLevel logLevel) in SetLogLevel() argument
81 g_logLevel = logLevel; in SetLogLevel()
89 int DfxLogPrint(const LogLevel logLevel, const unsigned int domain, const char* tag, const char *fm… in DfxLogPrint() argument
92 if (logLevel < g_logLevel) { in DfxLogPrint()
100 ret = DfxLogPrintV(logLevel, domain, tag, fmt, args); in DfxLogPrint()
108 if ((logLevel < LogLevel::LOG_DEBUG) || (logLevel > LogLevel::LOG_FATAL)) { in DfxLogPrintV()
118 HiLogBasePrint(LOG_CORE, logLevel, domain, tag, "%{public}s", buf); in DfxLogPrintV()
120 HiLogPrint(LOG_CORE, logLevel, domain, tag, "%{public}s", buf); in DfxLogPrintV()
[all …]
/ohos5.0/base/security/selinux_adapter/interfaces/policycoreutils/src/
H A 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 g_logLevelStr[logLevel], tmpFmt); in SelinuxKmsg()
H A 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()
60 switch (logLevel) { in SelinuxHilog()
/ohos5.0/base/startup/init/services/log/
H A 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()
103 static void PrintLog(InitLogLevel logLevel, unsigned int domain, const char *tag, const char *logIn… in PrintLog() argument
107 (void)HiLogPrint(INIT_LOG_INIT, LOG_LEVEL[logLevel], domain, tag, "%s", logInfo); in PrintLog()
110 LogToDmesg(logLevel, tag, logInfo); in PrintLog()
114 HiLogBasePrint(LOG_CORE, LOG_LEVEL[logLevel], domain, tag, "%{public}s", logInfo); in PrintLog()
121 static void PrintLogFmt(int logLevel, unsigned int domain, const char *tag, const char *fmt, va_lis… in PrintLogFmt() argument
128 PrintLog((InitLogLevel)logLevel, domain, tag, tmpFmt); in PrintLogFmt()
131 INIT_LOCAL_API void InitLog(int logLevel, unsigned int domain, const char *tag, const char *fmt, va… in InitLog() argument
133 if ((int)g_logLevel > logLevel) { in InitLog()
[all …]
/ohos5.0/base/tee/tee_client/services/tlogcat/src/
H A Dsys_hilog_cfg.c41 uint8_t logLevel = logItem->logLevel; in TeeHilogPrint() local
47 if (logLevel < TOTAL_LEVEL_NUMS) { in TeeHilogPrint()
48 logLevel = hiLogLevel[logLevel]; in TeeHilogPrint()
50 logLevel = LOG_INFO; in TeeHilogPrint()
53 (void)HiLogPrint(LOG_CORE, logLevel, LOG_DOMAIN, logTag, "index: %{public}u: %{public}s", in TeeHilogPrint()
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/src/log/
H A Dlogger.cpp71 string_view Logger::GetLogLevelName(LogLevel logLevel, bool shortName) in GetLogLevelName() argument
73 const int level = static_cast<int>(logLevel); in GetLogLevelName()
100 …LogLevel logLevel, const string_view filename, int lineNumber, const string_view format, std::va_l… in VLog() argument
104 if (logLevel_ > logLevel) { in VLog()
128 output->Write(logLevel, filename, lineNumber, buffer_.data()); in VLog()
132 void Logger::VLogOnce(const string_view id, LogLevel logLevel, const string_view filename, int line… in VLogOnce() argument
139 VLog(logLevel, filename, lineNumber, format, args); in VLogOnce()
185 …LogLevel logLevel, const string_view filename, int lineNumber, FORMAT_ATTRIBUTE const char* format… in Log() argument
189 VLog(logLevel, filename, lineNumber, format, vl); in Log()
211 void Logger::SetLogLevel(LogLevel logLevel) in SetLogLevel() argument
[all …]
H A Dlogger.h38 static BASE_NS::string_view GetLogLevelName(LogLevel logLevel, bool shortName);
43 …void VLog(LogLevel logLevel, BASE_NS::string_view filename, int lineNumber, BASE_NS::string_view f…
45 …void VLogOnce(BASE_NS::string_view id, LogLevel logLevel, BASE_NS::string_view filename, int lineN…
51 …void Log(LogLevel logLevel, BASE_NS::string_view filename, int lineNumber, FORMAT_ATTRIBUTE const …
59 void SetLogLevel(LogLevel logLevel) override;
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_util/platform/liteos/
H A Dsys_log.c23 void PrintfImpl(const char *moduleName, uint32_t logLevel, const char *format, ...) in PrintfImpl() argument
28 printf("%u %s: ", logLevel, moduleName); in PrintfImpl()
35 static void HiLogPrintWrapper(const char *tag, uint32_t domain, const char *buf, uint32_t logLevel) in HiLogPrintWrapper() argument
38 switch (logLevel) { in HiLogPrintWrapper()
67 uint32_t logLevel, in NstackxHiLogImpl() argument
76 ret = sprintf_s(szStr, sizeof(szStr), "%u %s: ", logLevel, moduleName); in NstackxHiLogImpl()
90 HiLogPrintWrapper(tag, domain, szStr, logLevel); in NstackxHiLogImpl()
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_util/platform/unix/
H A Dsys_log.c23 void PrintfImpl(const char *moduleName, uint32_t logLevel, const char *format, ...) in PrintfImpl() argument
28 printf("%u %s: ", logLevel, moduleName); in PrintfImpl()
35 static void HiLogPrintWrapper(const char *tag, uint32_t domain, const char *buf, uint32_t logLevel) in HiLogPrintWrapper() argument
38 switch (logLevel) { in HiLogPrintWrapper()
67 uint32_t logLevel, in NstackxHiLogImpl() argument
76 ret = sprintf_s(szStr, sizeof(szStr), "%u %s: ", logLevel, moduleName); in NstackxHiLogImpl()
90 HiLogPrintWrapper(tag, domain, szStr, logLevel); in NstackxHiLogImpl()
/ohos5.0/drivers/peripheral/distributed_audio/hdi_service/common/log/src/
H A Ddaudio_log.cpp31 static void DHLogOut(DHLogLevel logLevel, const char *logBuf) in DHLogOut() argument
35 switch (logLevel) { in DHLogOut()
53 switch (logLevel) { in DHLogOut()
72 void DHLog(DHLogLevel logLevel, const char *fmt, ...) in DHLog() argument
82 DHLogOut(logLevel, "DH log length error."); in DHLog()
85 DHLogOut(logLevel, logBuf); in DHLog()
/ohos5.0/foundation/distributedhardware/distributed_camera/common/src/utils/
H A Ddh_log.cpp34 static void DHLogOut(DHLogLevel logLevel, const char *logBuf) in DHLogOut() argument
38 switch (logLevel) { in DHLogOut()
56 switch (logLevel) { in DHLogOut()
75 void DHLog(DHLogLevel logLevel, const char *fmt, ...) in DHLog() argument
85 DHLogOut(logLevel, "DH log length error."); in DHLog()
88 DHLogOut(logLevel, logBuf); in DHLog()
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_util/interface/
H A Dnstackx_log.h40 NSTACKX_EXPORT void SetLogLevel(uint32_t logLevel);
46 NSTACKX_EXPORT void PrintfImpl(const char *moduleName, uint32_t logLevel, const char *format, ...);
54 typedef void (*NstakcxLogCallback)(const char *moduleName, uint32_t logLevel, const char *format, .…
60 #define NSTACKX_LOG_COMMON(moduleName, logLevel, moduleDebugLevel, format, ...) \ argument
62 if (logLevel <= moduleDebugLevel && g_nstackxLogCallBack != NULL) { \
63 g_nstackxLogCallBack(moduleName, logLevel, "%s:[%d] :" format "\n", \
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_core/dfile/core/
H A Dnstackx_dfile_log.c28 void SetDFileLogLevel(uint32_t logLevel) in SetDFileLogLevel() argument
30 if (logLevel >= DFILE_LOG_LEVEL_END) { in SetDFileLogLevel()
31 DFILE_LOGE(TAG, "invalid loglevel:%u", logLevel); in SetDFileLogLevel()
34 g_dfileLogLevel = logLevel; in SetDFileLogLevel()
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_ctrl/core/
H A Dnstackx_dfinder_log.c31 void SetDFinderLogLevel(uint32_t logLevel) in SetDFinderLogLevel() argument
33 if (logLevel >= DFINDER_LOG_LEVEL_END) { in SetDFinderLogLevel()
34 DFINDER_LOGE(TAG, "invalid loglevel:%u", logLevel); in SetDFinderLogLevel()
37 g_dfinderLogLevel = logLevel; in SetDFinderLogLevel()
/ohos5.0/base/update/updater/services/flashd/daemon/
H A Dflashd_main.cpp45 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()
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/src/os/linux/
H A Dlogger_generic.cpp47 …ILogger::LogLevel logLevel, const string_view filename, int linenumber, const string_view message)… in Write() argument
52 const auto levelString = Logger::GetLogLevelName(logLevel, true); in Write()
74 if (logLevel >= ILogger::LogLevel::LOG_ERROR) { in Write()
76 } else if (logLevel == ILogger::LogLevel::LOG_WARNING) { in Write()
78 } else if (logLevel <= ILogger::LogLevel::LOG_DEBUG) { in Write()
173 …ILogger::LogLevel logLevel, const string_view filename, int linenumber, const string_view message)… in Write() argument
179 const auto levelString = Logger::GetLogLevelName(logLevel, true); in Write()
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/src/
H A Dlog.c22 FILLP_INT32 FillpApiSetDebugLogLevel(IN FILLP_UINT8 logLevel) in FillpApiSetDebugLogLevel() argument
24 if (logLevel < FILLP_DBG_LVL_DEBUG || logLevel > FILLP_DBG_LVL_ERROR) { in FillpApiSetDebugLogLevel()
28 g_fillpLmGlobal.debugLevel = (FILLP_UINT8)logLevel; in FillpApiSetDebugLogLevel()
/ohos5.0/base/startup/init/services/begetctl/
H A 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()
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/src/os/windows/
H A Dlogger_windows.cpp76 …ILogger::LogLevel logLevel, const string_view filename, int linenumber, const string_view message)… in Write() argument
81 const auto levelString = Logger::GetLogLevelName(logLevel, true); in Write()
103 if (logLevel >= ILogger::LogLevel::LOG_ERROR) { in Write()
105 } else if (logLevel == ILogger::LogLevel::LOG_WARNING) { in Write()
107 } else if (logLevel <= ILogger::LogLevel::LOG_DEBUG) { in Write()
201 …ILogger::LogLevel logLevel, const string_view filename, int linenumber, const string_view message)… in Write() argument
212 const auto levelString = Logger::GetLogLevelName(logLevel, true); in Write()
/ohos5.0/base/security/access_token/interfaces/innerkits/nativetoken/src/
H A Dnativetoken_klog.c40 int NativeTokenKmsg(int logLevel, const char *fmt, ...) in NativeTokenKmsg() argument
42 if ((logLevel < 0) || (logLevel >= MAX_LEVEL_SIZE)) { in NativeTokenKmsg()
63 getpid(), "access_token", LOG_LEVEL_STR[logLevel], tmpFmt); in NativeTokenKmsg()
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeEngine/api/core/
H A Dintf_logger.h83 …LogLevel logLevel, BASE_NS::string_view filename, int lineNumber, BASE_NS::string_view message) = … in CORE_BEGIN_NAMESPACE()
101 …virtual void VLog(LogLevel logLevel, BASE_NS::string_view filename, int lineNumber, BASE_NS::strin… in CORE_BEGIN_NAMESPACE()
104 …virtual void VLogOnce(BASE_NS::string_view id, LogLevel logLevel, BASE_NS::string_view filename, i… in CORE_BEGIN_NAMESPACE()
111 …LogLevel logLevel, BASE_NS::string_view filename, int lineNumber, FORMAT_ATTRIBUTE const char* for… in CORE_BEGIN_NAMESPACE()
119 virtual void SetLogLevel(LogLevel logLevel) = 0; in CORE_BEGIN_NAMESPACE()
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBinaryCompile/LumeShaderCompiler/src/lume/log/
H A DLogger.cpp40 const int logLevel = static_cast<int>(aLogLevel); in getLogLevelName() local
41 LUME_ASSERT(logLevel >= 0 && logLevel < LOG_LEVEL_COUNT); in getLogLevelName()
43 return aShortName ? LOG_LEVEL_NAMES_SHORT[logLevel] : LOG_LEVEL_NAMES[logLevel]; in getLogLevelName()
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/nstackx_util/core/
H A Dnstackx_log.c42 void SetLogLevel(uint32_t logLevel) in SetLogLevel() argument
44 if (logLevel >= NSTACKX_LOG_LEVEL_END) { in SetLogLevel()
47 g_logLevel = logLevel; in SetLogLevel()

1234