# HiLog ## **Overview** Provides logging functions. For example, you can use these functions to output logs of the specified log type, service domain, log tag, and log level. **Since:** 1.1 **Version:** 1.0 ## **Summary** ## Macros
Defines a string constant used to identify the class, file, or service behavior. |
|
HILOG_DEBUG(type, ...) ((void)HiLogPrint(LOG_CORE, LOG_DEBUG, LOG_DOMAIN, LOG_TAG, __VA_ARGS__)) |
|
HILOG_INFO(type, ...) ((void)HiLogPrint(LOG_CORE, LOG_INFO, LOG_DOMAIN, LOG_TAG, __VA_ARGS__)) |
|
HILOG_WARN(type, ...) ((void)HiLogPrint(LOG_CORE, LOG_WARN, LOG_DOMAIN, LOG_TAG, __VA_ARGS__)) |
|
HILOG_ERROR(type, ...) ((void)HiLogPrint(LOG_CORE, LOG_ERROR, LOG_DOMAIN, LOG_TAG, __VA_ARGS__)) |
|
HILOG_FATAL(type, ...) ((void)HiLogPrint(LOG_CORE, LOG_FATAL, LOG_DOMAIN, LOG_TAG, __VA_ARGS__)) |
HiLogModuleType { HILOG_MODULE_HIVIEW = 0, HILOG_MODULE_SAMGR, HILOG_MODULE_ACE, HILOG_MODULE_APP, HILOG_MODULE_MAX } |
|
LogLevel { LOG_DEBUG = 3, LOG_INFO = 4, LOG_WARN = 5, LOG_ERROR = 6, LOG_FATAL = 7 } |
HiLogPrint (LogType type, LogLevel level, unsigned int domain, const char *tag, const char *fmt,...) __attribute__((format(os_log |
HILOG_MODULE_HIVIEW | |
HILOG_MODULE_SAMGR | |
HILOG_MODULE_ACE | |
HILOG_MODULE_APP | |
HILOG_MODULE_MAX |
LOG_DEBUG | Debug level to be used by HILOG_DEBUG |
LOG_INFO | Informational level to be used by HILOG_INFO |
LOG_WARN | Warning level to be used by HILOG_WARN |
LOG_ERROR | Error level to be used by HILOG_ERROR |
LOG_FATAL | Fatal level to be used by HILOG_FATAL |