category.h(3) | log4c | category.h(3) |
category.h - central class in the log4c package.
#include <stdio.h>
#include <stdarg.h>
#include <log4c/defs.h>
#include <log4c/priority.h>
#include <log4c/location_info.h>
#define log4c_category_define(a_category, a_name)
typedef struct __log4c_category log4c_category_t
log4c_category_t * log4c_category_get (const char
*a_name)
int log4c_category_list (log4c_category_t **a_cats, int a_ncats)
log4c_category_t * log4c_category_new (const char *a_name)
void log4c_category_delete (log4c_category_t *a_category)
const char * log4c_category_get_name (const log4c_category_t
*a_category)
const struct __log4c_appender * log4c_category_get_appender (const
log4c_category_t *a_category)
int log4c_category_get_additivity (const log4c_category_t
*a_category)
int log4c_category_get_priority (const log4c_category_t
*a_category)
int log4c_category_get_chainedpriority (const log4c_category_t
*a_category)
const struct __log4c_appender * log4c_category_set_appender
(log4c_category_t *a_category, struct __log4c_appender *a_appender)
int log4c_category_set_priority (log4c_category_t *a_category,
int a_priority)
int log4c_category_set_additivity (log4c_category_t *a_category,
int a_additivity)
void log4c_category_print (const log4c_category_t *a_category,
FILE *a_stream)
static int log4c_category_is_priority_enabled (const
log4c_category_t *a_category, int a_priority)
static int log4c_category_is_fatal_enabled (const
log4c_category_t *a_category)
static int log4c_category_is_alert_enabled (const
log4c_category_t *a_category)
static int log4c_category_is_crit_enabled (const
log4c_category_t *a_category)
static int log4c_category_is_error_enabled (const
log4c_category_t *a_category)
static int log4c_category_is_warn_enabled (const
log4c_category_t *a_category)
static int log4c_category_is_notice_enabled (const
log4c_category_t *a_category)
static int log4c_category_is_info_enabled (const
log4c_category_t *a_category)
static int log4c_category_is_debug_enabled (const
log4c_category_t *a_category)
static int log4c_category_is_trace_enabled (const
log4c_category_t *a_category)
static LOG4C_INLINE void log4c_category_log (const
log4c_category_t *a_category, int a_priority, const char
*a_format,...)
static LOG4C_INLINE void log4c_category_log_locinfo (const
log4c_category_t *a_category, const log4c_location_info_t
*a_locinfo, int a_priority, const char *a_format,...)
static LOG4C_INLINE void log4c_category_fatal (const
log4c_category_t *a_category, const char *a_format,...)
static LOG4C_INLINE void log4c_category_alert (const
log4c_category_t *a_category, const char *a_format,...)
static LOG4C_INLINE void log4c_category_crit (const
log4c_category_t *a_category, const char *a_format,...)
static LOG4C_INLINE void log4c_category_error (const
log4c_category_t *a_category, const char *a_format,...)
static LOG4C_INLINE void log4c_category_warn (const
log4c_category_t *a_category, const char *a_format,...)
static LOG4C_INLINE void log4c_category_notice (const
log4c_category_t *a_category, const char *a_format,...)
static LOG4C_INLINE void log4c_category_info (const
log4c_category_t *a_category, const char *a_format,...)
static LOG4C_INLINE void log4c_category_debug (const
log4c_category_t *a_category, const char *a_format,...)
static LOG4C_INLINE void __log4c_category_trace (const
log4c_category_t *a_category, const char *a_format,...)
central class in the log4c package.
One of the distintive features of log4j (and hence log4c) are hierarchical categories and their evaluation.
Helper macro to define static categories.
Parameters:
log4c category class
Log a message with trace priority.
Parameters:
References log4c_category_is_priority_enabled(), and LOG4C_PRIORITY_TRACE.
Log a message with alert priority.
Parameters:
References log4c_category_is_priority_enabled(), and LOG4C_PRIORITY_ALERT.
Log a message with crit priority.
Parameters:
References log4c_category_is_priority_enabled(), and LOG4C_PRIORITY_CRIT.
Log a message with debug priority.
Parameters:
References log4c_category_is_priority_enabled(), and LOG4C_PRIORITY_DEBUG.
Destructor for a log4c_category_t.
Parameters:
Log a message with error priority.
Parameters:
References log4c_category_is_priority_enabled(), and LOG4C_PRIORITY_ERROR.
Log a message with fatal priority.
Parameters:
References log4c_category_is_priority_enabled(), and LOG4C_PRIORITY_FATAL.
Instantiate a log4c_category_t with name name. This method does not set priority of the category which is by default LOG4C_PRIORITY_NOTSET.
Parameters:
Bug
References log4c_category_delete(), log4c_category_new(), and log4c_category_print().
Get the additivity flag for this log4c_category_t..
Parameters:
Returns:
Returns the Appender for this log4c_category_t, or NULL if no Appender has been set.
Parameters:
Returns:
Starting from this category, search the category hierarchy for a set priority and return it. Otherwise, return the priority of the root category.
Parameters:
Todo
References LOG4C_PRIORITY_NOTSET, and LOG4C_PRIORITY_UNKNOWN.
Return the category name.
Parameters:
Returns:
Returns the assigned Priority, if any, for this log4c_category_t.
Parameters:
Returns:
References LOG4C_PRIORITY_UNKNOWN.
Log a message with info priority.
Parameters:
References log4c_category_is_priority_enabled(), and LOG4C_PRIORITY_INFO.
Return true if the category will log messages with priority LOG4C_PRIORITY_ALERT.
Parameters:
Returns:
References log4c_category_is_priority_enabled(), and LOG4C_PRIORITY_ALERT.
Return true if the category will log messages with priority LOG4C_PRIORITY_CRIT.
Parameters:
Returns:
References log4c_category_is_priority_enabled(), and LOG4C_PRIORITY_CRIT.
Return true if the category will log messages with priority LOG4C_PRIORITY_DEBUG.
Parameters:
Returns:
References log4c_category_is_priority_enabled(), and LOG4C_PRIORITY_DEBUG.
Return true if the category will log messages with priority LOG4C_PRIORITY_ERROR.
Parameters:
Returns:
References log4c_category_is_priority_enabled(), and LOG4C_PRIORITY_ERROR.
Return true if the category will log messages with priority LOG4C_PRIORITY_FATAL.
Parameters:
Returns:
References log4c_category_is_priority_enabled(), and LOG4C_PRIORITY_FATAL.
Return true if the category will log messages with priority LOG4C_PRIORITY_INFO.
Parameters:
Returns:
References log4c_category_is_priority_enabled(), and LOG4C_PRIORITY_INFO.
Return true if the category will log messages with priority LOG4C_PRIORITY_NOTICE.
Parameters:
Returns:
References log4c_category_is_priority_enabled(), and LOG4C_PRIORITY_NOTICE.
Returns true if the chained priority of the log4c_category_t is equal to or higher than given priority.
Parameters:
Returns:
References log4c_category_get_chainedpriority().
Return true if the category will log messages with priority LOG4C_PRIORITY_TRACE.
Parameters:
Returns:
References log4c_category_is_priority_enabled(), and LOG4C_PRIORITY_TRACE.
Return true if the category will log messages with priority LOG4C_PRIORITY_WARN.
Parameters:
Returns:
References log4c_category_is_priority_enabled(), and LOG4C_PRIORITY_WARN.
Fill in an array with the log4c categories.
Parameters:
Returns:
Log a message with the specified priority.
Parameters:
References log4c_category_is_priority_enabled().
Log a message with the specified priority and a user location info.
Parameters:
References log4c_category_is_priority_enabled().
Constructor for a log4c_category_t.
Parameters:
Returns:
Warning:
References log4c_category_get(), and LOG4C_PRIORITY_NOTSET.
Log a message with notice priority.
Parameters:
References log4c_category_is_priority_enabled(), and LOG4C_PRIORITY_NOTICE.
prints the log4c_category_t object on a stream
Parameters:
References log4c_appender_get_name(), log4c_category_get_name(), and log4c_priority_to_string().
Sets a new additivity flag for this category.
Parameters:
Returns:
Sets a new appender for this category.
Parameters:
Returns:
Todo
Sets a new priority of this category.
Parameters:
Returns:
References LOG4C_PRIORITY_UNKNOWN.
Log a message with warn priority.
Parameters:
References log4c_category_is_priority_enabled(), and LOG4C_PRIORITY_WARN.
Generated automatically by Doxygen for log4c from the source code.
Mon Jul 15 2019 | Version 1.2.4 |