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

LOG4C_API int log4c_category_set_priority ( log4c_category_t a_category,
int  a_priority 
)

Sets a new priority of this category.

Parameters:
a_category the log4c_category_t object
a_priority the new priority to set. Use LOG4C_PRIORITY_NOTSET to let the category use its parents priority as effective priority.
Returns:
the previous category priority

Definition at line 146 of file category.c.

References LOG4C_PRIORITY_UNKNOWN.

{
  int previous;
  
  if (!this) 
    return LOG4C_PRIORITY_UNKNOWN;
  
  previous = this->cat_priority;
  this->cat_priority = a_priority;
  return previous;
}


Generated by  Doxygen 1.6.0   Back to index