Skip to content

Commit

Permalink
improve log
Browse files Browse the repository at this point in the history
  • Loading branch information
xianjimli committed Dec 4, 2023
1 parent f5735b8 commit 67704d6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/tkc/log.h
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,17 @@ void awtk_ios_log(const char* message, ...);
log_impl(format, ##args); \
}
#else
#ifdef WITH_LOG_NOTIFY
#define log_debug(format, args...) log_notify(LOG_LEVEL_DEBUG, format, ##args)
#define log_info(format, args...) log_notify(LOG_LEVEL_INFO, format, ##args)
#define log_warn(format, args...) log_notify(LOG_LEVEL_WARN, format, ##args)
#define log_error(format, args...) log_notify(LOG_LEVEL_ERROR, format, ##args)
#else
#define log_debug(format, args...)
#define log_info(format, args...)
#define log_warn(format, args...)
#define log_error(format, args...)
#endif/*WITH_LOG_NOTIFY*/
#endif

END_C_DECLS
Expand Down

0 comments on commit 67704d6

Please sign in to comment.