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

static int log4c_category_is_priority_enabled ( const log4c_category_t a_category,
int  a_priority 
) [inline, static]

Returns true if the chained priority of the log4c_category_t is equal to or higher than given priority.

Parameters:
a_category the log4c_category_t object
a_priority The priority to compare with.
Returns:
whether logging is enable for this priority.

Definition at line 167 of file category.h.

Referenced by __log4c_category_trace(), log4c_category_alert(), log4c_category_crit(), log4c_category_debug(), log4c_category_error(), log4c_category_fatal(), log4c_category_info(), log4c_category_is_alert_enabled(), log4c_category_is_crit_enabled(), log4c_category_is_debug_enabled(), log4c_category_is_error_enabled(), log4c_category_is_fatal_enabled(), log4c_category_is_info_enabled(), log4c_category_is_notice_enabled(), log4c_category_is_trace_enabled(), log4c_category_is_warn_enabled(), log4c_category_log(), log4c_category_log_locinfo(), log4c_category_notice(), and log4c_category_warn().

{
    return log4c_category_get_chainedpriority(a_category) >= a_priority;
}


Generated by  Doxygen 1.6.0   Back to index