#ifndef __MM_LOG_H__
#define __MM_LOG_H__
+#include <dlog.h>
+
#ifdef __cplusplus
extern "C" {
#endif
/**
- * Enumerations for log direction
- */
-typedef enum {
- LOG_DIRECTION_NONE = 0,
- LOG_DIRECTION_CONSOLE,
- LOG_DIRECTION_FILE,
- LOG_DIRECTION_SYSLOG,
- LOG_DIRECTION_SYSTEM,
- LOG_DIRECTION_VIEWER,
- LOG_DIRECTION_CNT,
-} log_direction_t;
-
-/**
* Enumerations for log owner
*/
typedef enum {
LOG_ALL = 0xFFFFFFFF,
} log_owner_t;
-/**
- * Enumerations for log class
- */
-typedef enum {
- LOG_CLASS_NONE = 0x00,
- LOG_CLASS_VERBOSE = 0x01,
- LOG_CLASS_DEBUG = 0x02,
- LOG_CLASS_INFO = 0x04,
- LOG_CLASS_WARNING = 0x08,
- LOG_CLASS_ERR = 0x10,
- LOG_CLASS_CRITICAL = 0x20,
- LOG_CLASS_ALL = 0xFF,
-} log_class_t;
-
-#if defined(MM_DEBUG_FLAG)
-/**
- * This function print log.
- *
- * @param owner [in] owner of log message.
- * @param class [in] class of log message.
- * @param msg [in] message to print.
- *
- * @remark Print log message. Similar to printf except owner and class.
- * @see log_print_rel
- */
-#define log_print_dbg(owner, class, msg, args...) log_print_rel(owner, class, msg, ##args)
-
-/**
- * This function assert condition.
- *
- * @param condition [in] condition for check
- *
- * @remark If condition is not true, system is aborted. Same to assert function.
- * @see log_assert_rel
- */
-#define log_assert_dbg(condition) log_assert_rel((condition))
-
-#else
-#define log_print_dbg(owner, class, msg, args...)
-#define log_assert_dbg(condition)
-#endif
-
#define _SLOG(class, tag, format, arg...) \
SLOG(class, tag, format, ##arg)
#define _SECURE_SLOG(class, tag, format, arg...) \
SECURE_SLOG(class, tag, format, ##arg)
-#include <dlog.h>
-
#define mm_log_by_owner(owner, class, msg, args...) \
do { \
switch (owner) { \