exos_log_warning(): Log warning messages

<< 点击显示目录 >>

主页  exOS使用助手 > exOS Automation Help > Development > Programming > exOS Log API reference (exos_log.h) >

exos_log_warning(): Log warning messages

EXOS_ERROR_CODE exos_log_warning(const exos_log_handle_t *log, EXOS_LOG_TYPE type, char *format, ...);

警告信息代表可能会对应用程序造成严重影响的事件,但不能直接视为错误,因为应用程序可能能够恢复正常。

如果要记录希望默认可见的警告,则应使用 EXOS_LOG_TYPE_ALWAYS类型标志来记录 。


EXOS_ERROR_CODE exos_log_warning(const exos_log_handle_t *log, EXOS_LOG_TYPE type, char *format, ...);

Warning messages represent events that might have severe impact on your application, but cannot be direcly regarded as errors, as the application might be able to recover from the situation.

If you want to log warnings that you wish to be visible by default, you should log with the type flag EXOS_LOG_TYPE_ALWAYS.