/foundation/arkui/ace_engine_lite/frameworks/src/core/modules/presets/ |
H A D | console_log_impl.h | 31 enum LogLevel : uint8_t { 43 typedef void (*JSLogOutputExtraHandler)(OHOS::ACELite::LogLevel level, const char *logContent, size_t length); 53 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);
|
H A D | console_log_impl.cpp | 46 jerry_value_t LogNative(const LogLevel logLevel, in LogNative() 92 void LogOutLevel(const LogLevel logLevel) in LogOutLevel() 123 void LogString(const LogLevel logLevel, const char * const str) in LogString() 143 void LogChar(char c, const LogLevel logLevel, bool endFlag) in LogChar() 173 static void OutputToHiLog(const LogLevel logLevel, const char * const str) in OutputToHiLog() 199 static void OutputToHiLog(const LogLevel logLevel, const char * const str) in OutputToHiLog() 233 void Output(const LogLevel logLevel, const char * const str, const uint8_t length) in Output()
|
/foundation/distributeddatamgr/data_share/frameworks/native/common/include/ |
H A D | datashare_log.h | 31 if (HiLogIsLoggable(lable.domain, lable.tag, LogLevel::LOG_DEBUG)) { \ 32 ((void)HILOG_IMPL(lable.type, LogLevel::LOG_DEBUG, lable.domain, lable.tag, \ 41 if (HiLogIsLoggable(lable.domain, lable.tag, LogLevel::LOG_INFO)) { \ 42 ((void)HILOG_IMPL(lable.type, LogLevel::LOG_INFO, lable.domain, lable.tag, \ 51 if (HiLogIsLoggable(lable.domain, lable.tag, LogLevel::LOG_WARN)) { \ 52 ((void)HILOG_IMPL(lable.type, LogLevel::LOG_WARN, lable.domain, lable.tag, \ 61 if (HiLogIsLoggable(lable.domain, lable.tag, LogLevel::LOG_ERROR)) { \ 62 ((void)HILOG_IMPL(lable.type, LogLevel::LOG_ERROR, lable.domain, lable.tag, \ 71 if (HiLogIsLoggable(lable.domain, lable.tag, LogLevel::LOG_FATAL)) { \ 72 ((void)HILOG_IMPL(lable.type, LogLevel [all...] |
/foundation/distributeddatamgr/udmf/framework/common/ |
H A D | logger.h | 46 if (!HiLogIsLoggable(lable.domain, lable.tag, LogLevel::LOG_FATAL)) { \ 49 ((void)HILOG_IMPL(lable.type, LogLevel::LOG_FATAL, lable.domain, lable.tag, \ 56 if (!HiLogIsLoggable(lable.domain, lable.tag, LogLevel::LOG_ERROR)) { \ 59 ((void)HILOG_IMPL(lable.type, LogLevel::LOG_ERROR, lable.domain, lable.tag, \ 66 if (!HiLogIsLoggable(lable.domain, lable.tag, LogLevel::LOG_WARN)) { \ 69 ((void)HILOG_IMPL(lable.type, LogLevel::LOG_WARN, lable.domain, lable.tag, \ 76 if (!HiLogIsLoggable(lable.domain, lable.tag, LogLevel::LOG_INFO)) { \ 79 ((void)HILOG_IMPL(lable.type, LogLevel::LOG_INFO, lable.domain, lable.tag, \ 86 if (!HiLogIsLoggable(lable.domain, lable.tag, LogLevel::LOG_DEBUG)) { \ 89 ((void)HILOG_IMPL(lable.type, LogLevel [all...] |
/foundation/graphic/graphic_3d/lume/LumeBinaryCompile/LumeShaderCompiler/src/lume/log/ |
H A D | Logger.h | 32 static const char* getLogLevelName(LogLevel aLogLevel, bool aShortName);
37 void vlog(LogLevel aLogLevel, const char *aFilename, int aLinenumber, const char *aFormat, va_list aArgs) override;
38 FORMAT_FUNC(5, 6) void log(LogLevel aLogLevel, const char *aFilename, int aLinenumber, FORMAT_ATTRIBUTE const char *aFormat, ...) override;
42 LogLevel getLogLevel() const override;
43 void setLogLevel(LogLevel aLogLevel) override;
48 LogLevel mLogLevel = LogLevel::Verbose;
|
H A D | Logger.cpp | 26 const char* Logger::getLogLevelName(LogLevel aLogLevel, bool aShortName)
in getLogLevelName() 28 // Note: these must match the LogLevel enum.
in getLogLevelName() 61 void Logger::vlog(LogLevel aLogLevel, const char *aFilename, int aLinenumber, const char *aFormat, va_list aArgs)
in vlog() 63 LUME_ASSERT_MSG(aLogLevel != LogLevel::None, "'None' is not a valid log level for writing to the log.");
in vlog() 77 FORMAT_FUNC(5, 6) void Logger::log(LogLevel aLogLevel, const char *aFilename, int aLinenumber, FORMAT_ATTRIBUTE const char *aFormat, ...)
in log() 101 log(LogLevel::Fatal, aFilename, aLinenumber, "Assert failed (%s). %s", expressionString, buffer);
in logAssert() 106 ILogger::LogLevel Logger::getLogLevel() const
in getLogLevel() 111 void Logger::setLogLevel(LogLevel aLogLevel)
in setLogLevel()
|
H A D | LoggerOutput.cpp | 164 void write(ILogger::LogLevel aLogLevel, const char *aFilename, int aLinenumber, const char *aMessage) override
182 if (aLogLevel >= ILogger::LogLevel::Error)
186 else if (aLogLevel == ILogger::LogLevel::Warning)
190 else if (aLogLevel <= ILogger::LogLevel::Debug)
217 void write(ILogger::LogLevel aLogLevel, const char *aFilename, int aLinenumber, const char *aMessage) override
257 void write(ILogger::LogLevel aLogLevel, const char *aFilename, int aLinenumber, const char *aMessage) override
290 void write(ILogger::LogLevel aLogLevel, const char *aFilename, int aLinenumber, const char *aMessage) override
295 case ILogger::LogLevel::Verbose:
299 case ILogger::LogLevel::Debug:
303 case ILogger::LogLevel [all...] |
/foundation/graphic/graphic_3d/lume/LumeEngine/api/core/ |
H A D | log.h | 66 CHECK_FORMAT_STRING(__VA_ARGS__), CORE_NS::Log(CORE_NS::ILogger::LogLevel::LOG_INFO, "", 0, __VA_ARGS__) 69 CHECK_FORMAT_STRING(__VA_ARGS__), CORE_NS::Log(CORE_NS::ILogger::LogLevel::LOG_WARNING, "", 0, __VA_ARGS__) 72 CHECK_FORMAT_STRING(__VA_ARGS__), CORE_NS::Log(CORE_NS::ILogger::LogLevel::LOG_ERROR, "", 0, __VA_ARGS__) 75 CHECK_FORMAT_STRING(__VA_ARGS__), CORE_NS::Log(CORE_NS::ILogger::LogLevel::LOG_FATAL, "", 0, __VA_ARGS__) 83 CORE_NS::LogOnce(uniqueId, CORE_NS::ILogger::LogLevel::LOG_INFO, "", 0, __VA_ARGS__) 87 CORE_NS::LogOnce(uniqueId, CORE_NS::ILogger::LogLevel::LOG_WARNING, "", 0, __VA_ARGS__); 91 CORE_NS::LogOnce(uniqueId, CORE_NS::ILogger::LogLevel::LOG_ERROR, "", 0, __VA_ARGS__) 95 CORE_NS::LogOnce(uniqueId, CORE_NS::ILogger::LogLevel::LOG_FATAL, "", 0, __VA_ARGS__) 103 CORE_NS::Log(CORE_NS::ILogger::LogLevel::LOG_VERBOSE, __FILE__, __LINE__, __VA_ARGS__) 108 CORE_NS::Log(CORE_NS::ILogger::LogLevel [all...] |
H A D | intf_logger.h | 58 enum class LogLevel { class in ILogger 83 LogLevel logLevel, BASE_NS::string_view filename, int lineNumber, BASE_NS::string_view message) = 0; 101 virtual void VLog(LogLevel logLevel, BASE_NS::string_view filename, int lineNumber, BASE_NS::string_view format, 104 virtual void VLogOnce(BASE_NS::string_view id, LogLevel logLevel, BASE_NS::string_view filename, int lineNumber, 111 LogLevel logLevel, BASE_NS::string_view filename, int lineNumber, FORMAT_ATTRIBUTE const char* format, ...) = 0; 117 virtual LogLevel GetLogLevel() const = 0; 119 virtual void SetLogLevel(LogLevel logLevel) = 0;
|
/foundation/graphic/graphic_3d/lume/LumeBinaryCompile/LumeShaderCompiler/src/lume/ |
H A D | Log.h | 56 #define LUME_LOG_I(...) lume::getLogger().log(lume::ILogger::LogLevel::Info, nullptr, 0, __VA_ARGS__)
57 #define LUME_LOG_W(...) lume::getLogger().log(lume::ILogger::LogLevel::Warning, nullptr, 0, __VA_ARGS__)
58 #define LUME_LOG_E(...) lume::getLogger().log(lume::ILogger::LogLevel::Error, nullptr, 0, __VA_ARGS__)
59 #define LUME_LOG_F(...) lume::getLogger().log(lume::ILogger::LogLevel::Fatal, nullptr, 0, __VA_ARGS__)
82 #define LUME_LOG_V(...) lume::getLogger().log(lume::ILogger::LogLevel::Verbose, __FILE__, __LINE__, __VA_ARGS__)
83 #define LUME_LOG_D(...) lume::getLogger().log(lume::ILogger::LogLevel::Debug, __FILE__, __LINE__, __VA_ARGS__)
84 #define LUME_LOG_I(...) lume::getLogger().log(lume::ILogger::LogLevel::Info, __FILE__, __LINE__, __VA_ARGS__)
85 #define LUME_LOG_W(...) lume::getLogger().log(lume::ILogger::LogLevel::Warning, __FILE__, __LINE__, __VA_ARGS__)
86 #define LUME_LOG_E(...) lume::getLogger().log(lume::ILogger::LogLevel::Error, __FILE__, __LINE__, __VA_ARGS__)
87 #define LUME_LOG_F(...) lume::getLogger().log(lume::ILogger::LogLevel 104 enum class LogLevel global() class in lume::ILogger [all...] |
/foundation/distributeddatamgr/data_object/frameworks/innerkitsimpl/include/common/ |
H A D | logger.h | 30 if (HiLogIsLoggable(lable.domain, lable.tag, LogLevel::LOG_DEBUG)) { \ 31 ((void)HILOG_IMPL(lable.type, LogLevel::LOG_DEBUG, lable.domain, lable.tag, \ 39 if (HiLogIsLoggable(lable.domain, lable.tag, LogLevel::LOG_INFO)) { \ 40 ((void)HILOG_IMPL(lable.type, LogLevel::LOG_INFO, lable.domain, lable.tag, \ 48 if (HiLogIsLoggable(lable.domain, lable.tag, LogLevel::LOG_WARN)) { \ 49 ((void)HILOG_IMPL(lable.type, LogLevel::LOG_WARN, lable.domain, lable.tag, \ 57 if (HiLogIsLoggable(lable.domain, lable.tag, LogLevel::LOG_ERROR)) { \ 58 ((void)HILOG_IMPL(lable.type, LogLevel::LOG_ERROR, lable.domain, lable.tag, \ 66 if (HiLogIsLoggable(lable.domain, lable.tag, LogLevel::LOG_FATAL)) { \ 67 ((void)HILOG_IMPL(lable.type, LogLevel [all...] |
/foundation/distributeddatamgr/preferences/frameworks/common/include/ |
H A D | log_print.h | 62 if (HiLogIsLoggable(lable.domain, lable.tag, LogLevel::LOG_DEBUG)) { \
63 ((void)HILOG_IMPL(lable.type, LogLevel::LOG_DEBUG, lable.domain, lable.tag, \
79 if (HiLogIsLoggable(lable.domain, lable.tag, LogLevel::LOG_INFO)) { \
80 ((void)HILOG_IMPL(lable.type, LogLevel::LOG_INFO, lable.domain, lable.tag, \
88 if (HiLogIsLoggable(lable.domain, lable.tag, LogLevel::LOG_WARN)) { \
89 ((void)HILOG_IMPL(lable.type, LogLevel::LOG_WARN, lable.domain, lable.tag, \
97 if (HiLogIsLoggable(lable.domain, lable.tag, LogLevel::LOG_ERROR)) { \
98 ((void)HILOG_IMPL(lable.type, LogLevel::LOG_ERROR, lable.domain, lable.tag, \
106 if (HiLogIsLoggable(lable.domain, lable.tag, LogLevel::LOG_FATAL)) { \
107 ((void)HILOG_IMPL(lable.type, LogLevel [all...] |
/foundation/graphic/graphic_3d/lume/LumeRender/src/util/ |
H A D | log.h | 74 RENDER_NS::PluginLog(CORE_NS::ILogger::LogLevel::LOG_VERBOSE, PLUGIN_FILE_INFO, __VA_ARGS__) 78 RENDER_NS::PluginLog(CORE_NS::ILogger::LogLevel::LOG_DEBUG, PLUGIN_FILE_INFO, __VA_ARGS__) 84 RENDER_NS::PluginLogOnce(uniqueId, CORE_NS::ILogger::LogLevel::LOG_VERBOSE, PLUGIN_FILE_INFO, __VA_ARGS__) 90 RENDER_NS::PluginLogOnce(uniqueId, CORE_NS::ILogger::LogLevel::LOG_DEBUG, PLUGIN_FILE_INFO, __VA_ARGS__) 96 RENDER_NS::PluginLog(CORE_NS::ILogger::LogLevel::LOG_INFO, PLUGIN_FILE_INFO, __VA_ARGS__) 101 RENDER_NS::PluginLog(CORE_NS::ILogger::LogLevel::LOG_WARNING, PLUGIN_FILE_INFO, __VA_ARGS__) 106 RENDER_NS::PluginLog(CORE_NS::ILogger::LogLevel::LOG_ERROR, PLUGIN_FILE_INFO, __VA_ARGS__) 111 RENDER_NS::PluginLog(CORE_NS::ILogger::LogLevel::LOG_FATAL, PLUGIN_FILE_INFO, __VA_ARGS__) 118 RENDER_NS::PluginLogOnce(uniqueId, CORE_NS::ILogger::LogLevel::LOG_INFO, PLUGIN_FILE_INFO, __VA_ARGS__) 125 RENDER_NS::PluginLogOnce(uniqueId, CORE_NS::ILogger::LogLevel [all...] |
/foundation/graphic/graphic_3d/lume/LumeEngine/src/log/ |
H A D | logger.h | 38 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 format, 45 void VLogOnce(BASE_NS::string_view id, LogLevel logLevel, BASE_NS::string_view filename, int lineNumber, 51 void Log(LogLevel logLevel, BASE_NS::string_view filename, int lineNumber, FORMAT_ATTRIBUTE const char* format, 58 LogLevel GetLogLevel() const override; 59 void SetLogLevel(LogLevel logLevel) override; 71 LogLevel logLevel_ = LogLevel::LOG_VERBOSE;
|
H A D | logger.cpp | 47 // Note: these must match the LogLevel enum. 71 string_view Logger::GetLogLevelName(LogLevel logLevel, bool shortName) in GetLogLevelName() 81 : logLevel_(LogLevel::LOG_ERROR) in Logger() 100 LogLevel logLevel, const string_view filename, int lineNumber, const string_view format, std::va_list args) in VLog() 102 CORE_ASSERT_MSG(logLevel != LogLevel::LOG_NONE, "'None' is not a valid log level for writing to the log."); in VLog() 132 void Logger::VLogOnce(const string_view id, LogLevel logLevel, const string_view filename, int lineNumber, in VLogOnce() 155 Log(LogLevel::LOG_FATAL, filename, lineNumber, "Assert failed (%s). %s", expressionString.data(), buffer); in VLogAssert() 159 Log(LogLevel::LOG_FATAL, filename, lineNumber, "Java trace:"); in VLogAssert() 185 LogLevel logLevel, const string_view filename, int lineNumber, FORMAT_ATTRIBUTE const char* format, ...) in Log() 206 ILogger::LogLevel Logge [all...] |
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/cgroup_sched_plugin/common/ |
H A D | cgroup_sched_log.cpp | 20 LogLevel CgroupSchedLog::level_ = { LOG_DEBUG }; 22 bool CgroupSchedLog::JudgeLevel(const LogLevel &level) in JudgeLevel() 24 const LogLevel &curLevel = CgroupSchedLog::GetLogLevel(); in JudgeLevel()
|
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/cgroup_sched_plugin/framework/process_group/src/ |
H A D | process_group_log.cpp | 22 LogLevel ProcessGroupLog::level_ = { LOG_DEBUG }; 24 bool ProcessGroupLog::JudgeLevel(const LogLevel &level) in JudgeLevel() 26 const LogLevel &curLevel = ProcessGroupLog::GetLogLevel(); in JudgeLevel()
|
/foundation/graphic/graphic_3d/lume/LumeEngine/src/os/ohos/ |
H A D | logger_output.cpp | 61 ILogger::LogLevel logLevel, const string_view filename, int linenumber, const string_view message) override 65 case ILogger::LogLevel::LOG_VERBOSE: 69 case ILogger::LogLevel::LOG_DEBUG: 73 case ILogger::LogLevel::LOG_INFO: 77 case ILogger::LogLevel::LOG_WARNING: 81 case ILogger::LogLevel::LOG_ERROR: 85 case ILogger::LogLevel::LOG_FATAL:
|
/foundation/distributeddatamgr/relational_store/frameworks/common/include/ |
H A D | logger.h | 47 if (HiLogIsLoggable(lable.domain, lable.tag, LogLevel::LOG_DEBUG)) { \ 56 if (HiLogIsLoggable(lable.domain, lable.tag, LogLevel::LOG_INFO)) { \ 65 if (HiLogIsLoggable(lable.domain, lable.tag, LogLevel::LOG_WARN)) { \ 74 if (HiLogIsLoggable(lable.domain, lable.tag, LogLevel::LOG_ERROR)) { \ 83 if (HiLogIsLoggable(lable.domain, lable.tag, LogLevel::LOG_FATAL)) { \
|
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/cgroup_sched_plugin/framework/process_group/include/ |
H A D | process_group_log.h | 19 #include "hilog/log_c.h" // for LogLevel, LOG_CORE, LOG_LEVEL_MAX, LOG_LE... 48 static bool JudgeLevel(const LogLevel &level); 55 static const LogLevel &GetLogLevel() in GetLogLevel() 61 static LogLevel level_;
|
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/cgroup_sched_plugin/common/include/ |
H A D | cgroup_sched_log.h | 48 static bool JudgeLevel(const LogLevel &level); 55 static const LogLevel &GetLogLevel() in GetLogLevel() 61 static LogLevel level_;
|
/foundation/communication/dsoftbus/tests/core/common/dfx/log/unittest/mock/ |
H A D | hilog_mock.h | 28 LogType type, LogLevel level, unsigned int domain, const char *tag, const char *fmt, ...) = 0; 41 int HiLogPrint(LogType type, LogLevel level, unsigned int domain, const char *tag, const char *fmt, ...) override; 44 HiLogPrint, int(LogType type, LogLevel level, unsigned int domain, const char *tag, const char *fmt, char *));
|
H A D | hilog_mock.cpp | 22 int32_t HilogMock::HiLogPrint(LogType type, LogLevel level, unsigned int domain, const char *tag, const char *fmt, ...) in HiLogPrint() 36 int32_t HiLogPrint(LogType type, LogLevel level, unsigned int domain, const char *tag, const char *fmt, ...) in HiLogPrint() 49 int32_t HiLogPrintDictNew(const LogType type, const LogLevel level, const unsigned int domain, const char *tag, in HiLogPrintDictNew()
|
/foundation/arkui/ace_engine/frameworks/base/log/ |
H A D | log_wrapper.h | 54 if (OHOS::Ace::LogWrapper::JudgeLevel(OHOS::Ace::LogLevel::level)) { \ 55 OHOS::Ace::LogWrapper::PrintLog(OHOS::Ace::LogDomain::FRAMEWORK, OHOS::Ace::LogLevel::level, tag, \ 63 OHOS::Ace::LogDomain::JS_APP, OHOS::Ace::LogLevel::level, OHOS::Ace::AceLogTag::ACE_DEFAULT_DOMAIN, \ 220 enum class LogLevel : uint32_t { class 230 static bool JudgeLevel(LogLevel level) in JudgeLevel() 232 if (level == LogLevel::DEBUG) { in JudgeLevel() 238 static void SetLogLevel(LogLevel level) in SetLogLevel() 243 static LogLevel GetLogLevel() in GetLogLevel() 269 static void PrintLog(LogDomain domain, LogLevel level, AceLogTag tag, const char* fmt, ...) in PrintLog() 280 static void PrintLog(LogDomain domain, LogLevel leve [all...] |
/foundation/multimedia/image_framework/mock/native/include/log/hilog/ |
H A D | log_c.h | 56 } LogLevel; typedef 58 int HiLogPrint(LogType type, LogLevel level, unsigned int domain, const char *tag, const char *fmt, ...) 71 bool HiLogIsLoggable(unsigned int domain, const char *tag, LogLevel level);
|