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

LOG4C_API struct __log4c_appender* log4c_category_set_appender ( log4c_category_t this,
log4c_appender_t a_appender 
) [read]

Sets a new appender for this category.

Parameters:
a_category the log4c_category_t object
a_appender the new category appender
Returns:
the previous category appender
Todo:
need multiple appenders per category

Definition at line 163 of file category.c.

{
  log4c_appender_t* previous;
  
  if (!this) 
    return NULL;
  
  previous = this->cat_appender;
  this->cat_appender = a_appender;
  return previous;
}


Generated by  Doxygen 1.6.0   Back to index