Logo Search packages:      
Sourcecode: log4c version File versions  Download package

static LOG4C_INLINE void log4c_category_warn ( const log4c_category_t a_category,
const char *  a_format,
  ... 
) [static]

Log a message with warn priority.

Parameters:
a_category the log4c_category_t object
a_format Format specifier for the string to write in the log file.
... The arguments for a_format

Definition at line 489 of file category.h.

References log4c_category_is_priority_enabled(), log4c_category_vlog(), and LOG4C_PRIORITY_WARN.

{
    if (log4c_category_is_priority_enabled(a_category, LOG4C_PRIORITY_WARN)) {
      va_list va;
      va_start(va, a_format);
      log4c_category_vlog(a_category, LOG4C_PRIORITY_WARN, a_format, va);
      va_end(va);
    }
}


Generated by  Doxygen 1.6.0   Back to index