Man page - log4c_category_is_priority_enabled(3)
Packages contains this manual
- log4c_logging_event.h(3)
- log4c_rollingpolicy_init(3)
- log4c_appender_delete(3)
- log4c_category_print(3)
- log4c_appender_type_rollingfile.h(3)
- log4c_category_delete(3)
- log4c_category_get(3)
- log4c_category_is_debug_enabled(3)
- log4c_rollingpolicy_type_set(3)
- log4c_appender_type_set(3)
- log4c_layout_type_basic_r.h(3)
- log4c_rollingpolicy_is_triggering_event(3)
- log4c_layout_type_define(3)
- log4c_load(3)
- log4c_appender_type_rollingfile(3)
- log4c_category_notice(3)
- log4c_rc(3)
- log4c_init.h(3)
- log4c_appender_type_mmap(3)
- log4c_layout.h(3)
- log4c_layout_get_type(3)
- log4c_appender_get_layout(3)
- log4c_category_is_alert_enabled(3)
- log4c_priority_to_int(3)
- log4c_priority.h(3)
- log4c_rollingpolicy_sizewin_udata_t(3)
- log4c_priority_to_string(3)
- log4c_rollingpolicy_set_udata(3)
- log4c_stream2_set_flags(3)
- log4c_buffer_t(3)
- log4c_appender_types_print(3)
- log4c_rollingpolicy_get(3)
- log4c_layout_t(3)
- log4c_appender_types_free(3)
- log4c_rollingpolicy_fini(3)
- log4c_appender_type_stream2(3)
- log4c_rollingfile_udata_set_logdir(3)
- log4c_rollingfile_udata_get_logdir(3)
- log4c_layout_type_dated_local_r.h(3)
- log4c_category_set_appender(3)
- log4c_stream2_get_fp(3)
- log4c_category_is_notice_enabled(3)
- log4c_rollingpolicy_set_type(3)
- log4c_rollingpolicy_get_udata(3)
- log4c_appender_get_name(3)
- log4c_appender_print(3)
- log4c_layout_types_free(3)
- log4c_layout_type_set(3)
- log4c_appender_type_t(3)
- log4c_category_crit(3)
- log4c_appender_type_stream2.h(3)
- log4c_location(3)
- log4c_layout_get(3)
- log4c_appender_new(3)
- log4c_logging_event_delete(3)
- log4c_appender_t(3)
- log4c_appender_set_udata(3)
- log4c_stream2_set_fp(3)
- log4c_category_alert(3)
- log4c_appender_type_stream(3)
- log4c_appender_get(3)
- log4c_fini(3)
- log4c_buffer.h(3)
- log4c_category_get_priority(3)
- log4c_layout_type_dated_r.h(3)
- log4c_category_get_name(3)
- log4c_appender_get_type(3)
- log4c_category_define(3)
- log4c_category_log_locinfo(3)
- log4c_micro_version(3)
- log4c_category_log(3)
- log4c_category_get_appender(3)
- log4c_category_is_fatal_enabled(3)
- log4c_sizewin_udata_set_appender(3)
- log4c_category_debug(3)
- log4c_layout_delete(3)
- log4c_appender_set_type(3)
- log4c_logging_event_new(3)
- log4c_location_info_t(3)
- log4c_category_is_warn_enabled(3)
- log4c_appender_get_udata(3)
- log4c_category_list(3)
- log4c_logging_event_t(3)
- log4c_rollingfile_udata_set_policy(3)
- log4c_deprecated(3)
- log4c_sizewin_udata_set_max_num_files(3)
- log4c_category_is_info_enabled(3)
- log4c_rc.h(3)
- log4c_category_t(3)
- log4c_category_error(3)
- log4c_category_is_priority_enabled(3)
- log4c_rollingfile_udata_get_files_prefix(3)
- log4c_layout_print(3)
- log4c_rollingpolicy_get_rfudata(3)
- log4c___log4c_category_trace(3)
- log4c_category_fatal(3)
- log4c_layout_new(3)
- log4c_location_info.h(3)
- log4c_category_is_crit_enabled(3)
- log4c_layout_type_t(3)
- log4c_layout_type(3)
- log4c_layout_types_print(3)
- log4c_rollingpolicy.h(3)
- log4c_appender_close(3)
- log4c_layout_get_name(3)
- log4c_appender_type_get(3)
- log4c_init(3)
- log4c_rollingpolicy_type_t(3)
- log4c_appender.h(3)
- log4c_layout_format(3)
- log4c_category_get_chainedpriority(3)
- log4c_appender_type_syslog(3)
- log4c_category_set_additivity(3)
- log4c_category.h(3)
- log4c_category_is_trace_enabled(3)
- log4c_appender_open(3)
- log4c_rollingpolicy_type_get(3)
- log4c_bug(3)
- log4c_minor_version(3)
- log4c_version.h(3)
- log4c_appender_type_mmap.h(3)
- log4c_layout_get_udata(3)
- log4c_sizewin_make_udata(3)
- log4c_appender_type_stream.h(3)
- log4c_category_warn(3)
- log4c_category_new(3)
- log4c_layout_type_dated.h(3)
- log4c_layout_set_udata(3)
- log4c_appender_type(3)
- log4c_appender_append(3)
- log4c_layout_set_type(3)
- log4c_stream2_get_flags(3)
- log4c_rollingpolicy_type(3)
- log4c_rollingpolicy_t(3)
- log4c_category_is_error_enabled(3)
- log4c_rollingfile_get_current_file_size(3)
- log4c_appender_set_layout(3)
- log4c_major_version(3)
- log4c_layout_type_get(3)
- log4c_layout_type_dated_local.h(3)
- log4c_appender_type_syslog.h(3)
- log4c_category_info(3)
- log4c_rollingpolicy_type_sizewin.h(3)
- log4c_version(3)
- log4c_todo(3)
- log4c_category_get_additivity(3)
- log4c_priority_level_t(3)
- log4c_sizewin_udata_set_file_maxsize(3)
- log4c_rollingfile_udata_set_files_prefix(3)
- log4c_layout_type_basic.h(3)
- log4c_rollingfile_make_udata(3)
- log4c_rc_t(3)
- log4c_category_set_priority(3)
- log4c_appender_type_define(3)
apt-get install liblog4c-doc
Manual
category.h
NAMESYNOPSIS
Macros
Typedefs
Functions
Detailed Description
Macro Definition Documentation
#define log4c_category_define(a_category, a_name)
Typedef Documentation
typedef struct __log4c_category log4c_category_t
Function Documentation
static LOG4C_INLINE void __log4c_category_trace (const log4c_category_t *a_category, const char * a_format, ...) [static]
static LOG4C_INLINE void log4c_category_alert (const log4c_category_t *a_category, const char * a_format, ...) [static]
static LOG4C_INLINE void log4c_category_crit (const log4c_category_t *a_category, const char * a_format, ...) [static]
static LOG4C_INLINE void log4c_category_debug (const log4c_category_t *a_category, const char * a_format, ...) [static]
void log4c_category_delete (log4c_category_t * a_category)
static LOG4C_INLINE void log4c_category_error (const log4c_category_t *a_category, const char * a_format, ...) [static]
static LOG4C_INLINE void log4c_category_fatal (const log4c_category_t *a_category, const char * a_format, ...) [static]
log4c_category_t * log4c_category_get (const char * a_name)
int log4c_category_get_additivity (const log4c_category_t * a_category)
const struct __log4c_appender * log4c_category_get_appender (constlog4c_category_t * a_category)
int log4c_category_get_chainedpriority (const log4c_category_t *a_category)
const char * log4c_category_get_name (const log4c_category_t * a_category)
int log4c_category_get_priority (const log4c_category_t * a_category)
static LOG4C_INLINE void log4c_category_info (const log4c_category_t *a_category, const char * a_format, ...) [static]
static int log4c_category_is_alert_enabled (const log4c_category_t *a_category) [inline], [static]
static int log4c_category_is_crit_enabled (const log4c_category_t *a_category) [inline], [static]
static int log4c_category_is_debug_enabled (const log4c_category_t *a_category) [inline], [static]
static int log4c_category_is_error_enabled (const log4c_category_t *a_category) [inline], [static]
static int log4c_category_is_fatal_enabled (const log4c_category_t *a_category) [inline], [static]
static int log4c_category_is_info_enabled (const log4c_category_t *a_category) [inline], [static]
static int log4c_category_is_notice_enabled (const log4c_category_t *a_category) [inline], [static]
static int log4c_category_is_priority_enabled (const log4c_category_t *a_category, int a_priority) [inline], [static]
static int log4c_category_is_trace_enabled (const log4c_category_t *a_category) [inline], [static]
static int log4c_category_is_warn_enabled (const log4c_category_t *a_category) [inline], [static]
int log4c_category_list (log4c_category_t ** a_cats, int a_ncats)
static LOG4C_INLINE void log4c_category_log (const log4c_category_t *a_category, int a_priority, const char * a_format, ...) [static]
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_category_t * log4c_category_new (const char * a_name)
static LOG4C_INLINE void log4c_category_notice (const log4c_category_t *a_category, const char * a_format, ...) [static]
void log4c_category_print (const log4c_category_t * a_category, FILE *a_stream)
int log4c_category_set_additivity (log4c_category_t * a_category, inta_additivity)
const struct __log4c_appender * log4c_category_set_appender(log4c_category_t * this, log4c_appender_t * a_appender)
int log4c_category_set_priority (log4c_category_t * a_category, inta_priority)
static LOG4C_INLINE void log4c_category_warn (const log4c_category_t *a_category, const char * a_format, ...) [static]
Author
NAME
category.h - central class in the log4c package.
SYNOPSIS
#include
<stdio.h>
#include <stdarg.h>
#include <log4c/defs.h>
#include <log4c/priority.h>
#include <log4c/location_info.h>
Macros
#define log4c_category_define (a_category, a_name)
Typedefs
typedef struct __log4c_category log4c_category_t
Functions
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,...)
Detailed Description
central class in the log4c package.
One of the distintive features of log4j (and hence log4c) are hierarchical categories and their evaluation.
Macro Definition Documentation
#define log4c_category_define(a_category, a_name)
Helper macro to define static categories.
Parameters
a_category
the
log4c_category_t pointer name
a_name
the category name
Typedef Documentation
typedef struct __log4c_category log4c_category_t
log4c category class
Function Documentation
static LOG4C_INLINE void __log4c_category_trace (const log4c_category_t *a_category, const char * a_format, ...) [static]
Log a message with trace 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
References log4c_category_is_priority_enabled() , and LOG4C_PRIORITY_TRACE .
static LOG4C_INLINE void log4c_category_alert (const log4c_category_t *a_category, const char * a_format, ...) [static]
Log a message with alert 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
References log4c_category_is_priority_enabled() , and LOG4C_PRIORITY_ALERT .
static LOG4C_INLINE void log4c_category_crit (const log4c_category_t *a_category, const char * a_format, ...) [static]
Log a message with crit 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
References log4c_category_is_priority_enabled() , and LOG4C_PRIORITY_CRIT .
static LOG4C_INLINE void log4c_category_debug (const log4c_category_t *a_category, const char * a_format, ...) [static]
Log a message with debug 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
References log4c_category_is_priority_enabled() , and LOG4C_PRIORITY_DEBUG .
void log4c_category_delete (log4c_category_t * a_category)
Destructor for a log4c_category_t.
Parameters
a_category the log4c_category_t object
static LOG4C_INLINE void log4c_category_error (const log4c_category_t *a_category, const char * a_format, ...) [static]
Log a message with error 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
References log4c_category_is_priority_enabled() , and LOG4C_PRIORITY_ERROR .
static LOG4C_INLINE void log4c_category_fatal (const log4c_category_t *a_category, const char * a_format, ...) [static]
Log a message with fatal 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
References log4c_category_is_priority_enabled() , and LOG4C_PRIORITY_FATAL .
log4c_category_t * log4c_category_get (const char * a_name)
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
a_name The name of the category to retrieve.
Bug
the root category name should be ββ not βrootβ. *
int log4c_category_get_additivity (const log4c_category_t * a_category)
Get the additivity flag for this log4c_category_t..
Parameters
a_category the log4c_category_t object
Returns
the category additivity
const struct __log4c_appender * log4c_category_get_appender (constlog4c_category_t * a_category)
Returns the Appender for this log4c_category_t, or NULL if no Appender has been set.
Parameters
a_category the log4c_category_t object
Returns
The Appender.
int log4c_category_get_chainedpriority (const log4c_category_t *a_category)
Starting from this category, search the category hierarchy for a set priority and return it. Otherwise, return the priority of the root category.
Parameters
a_category the log4c_category_t object
Todo
the log4c_category_t is designed so that this method executes as quickly as possible. It could even be faster if the set priority was propagated through the children hierarchy of a category.
References LOG4C_PRIORITY_NOTSET , and LOG4C_PRIORITY_UNKNOWN .
const char * log4c_category_get_name (const log4c_category_t * a_category)
Return the category name.
Parameters
a_category the log4c_category_t object
Returns
the category name.
int log4c_category_get_priority (const log4c_category_t * a_category)
Returns the assigned Priority, if any, for this log4c_category_t.
Parameters
a_category the log4c_category_t object
Returns
Priority - the assigned Priority, can be LOG4C_PRIORITY_NOTSET
References LOG4C_PRIORITY_UNKNOWN .
static LOG4C_INLINE void log4c_category_info (const log4c_category_t *a_category, const char * a_format, ...) [static]
Log a message with info 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
References log4c_category_is_priority_enabled() , and LOG4C_PRIORITY_INFO .
static int log4c_category_is_alert_enabled (const log4c_category_t *a_category) [inline], [static]
Return true if the category will log messages with priority LOG4C_PRIORITY_ALERT .
Parameters
a_category the log4c_category_t object
Returns
Whether the category will log.
References log4c_category_is_priority_enabled() , and LOG4C_PRIORITY_ALERT .
static int log4c_category_is_crit_enabled (const log4c_category_t *a_category) [inline], [static]
Return true if the category will log messages with priority LOG4C_PRIORITY_CRIT .
Parameters
a_category the log4c_category_t object
Returns
Whether the category will log.
References log4c_category_is_priority_enabled() , and LOG4C_PRIORITY_CRIT .
static int log4c_category_is_debug_enabled (const log4c_category_t *a_category) [inline], [static]
Return true if the category will log messages with priority LOG4C_PRIORITY_DEBUG .
Parameters
a_category the log4c_category_t object
Returns
Whether the category will log.
References log4c_category_is_priority_enabled() , and LOG4C_PRIORITY_DEBUG .
static int log4c_category_is_error_enabled (const log4c_category_t *a_category) [inline], [static]
Return true if the category will log messages with priority LOG4C_PRIORITY_ERROR .
Parameters
a_category the log4c_category_t object
Returns
Whether the category will log.
References log4c_category_is_priority_enabled() , and LOG4C_PRIORITY_ERROR .
static int log4c_category_is_fatal_enabled (const log4c_category_t *a_category) [inline], [static]
Return true if the category will log messages with priority LOG4C_PRIORITY_FATAL .
Parameters
a_category the log4c_category_t object
Returns
Whether the category will log.
References log4c_category_is_priority_enabled() , and LOG4C_PRIORITY_FATAL .
static int log4c_category_is_info_enabled (const log4c_category_t *a_category) [inline], [static]
Return true if the category will log messages with priority LOG4C_PRIORITY_INFO .
Parameters
a_category the log4c_category_t object
Returns
Whether the category will log.
References log4c_category_is_priority_enabled() , and LOG4C_PRIORITY_INFO .
static int log4c_category_is_notice_enabled (const log4c_category_t *a_category) [inline], [static]
Return true if the category will log messages with priority LOG4C_PRIORITY_NOTICE .
Parameters
a_category the log4c_category_t object
Returns
Whether the category will log.
References log4c_category_is_priority_enabled() , and LOG4C_PRIORITY_NOTICE .
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.
References log4c_category_get_chainedpriority() .
static int log4c_category_is_trace_enabled (const log4c_category_t *a_category) [inline], [static]
Return true if the category will log messages with priority LOG4C_PRIORITY_TRACE .
Parameters
a_category the log4c_category_t object
Returns
Whether the category will log.
References log4c_category_is_priority_enabled() , and LOG4C_PRIORITY_TRACE .
static int log4c_category_is_warn_enabled (const log4c_category_t *a_category) [inline], [static]
Return true if the category will log messages with priority LOG4C_PRIORITY_WARN .
Parameters
a_category the log4c_category_t object
Returns
Whether the category will log.
References log4c_category_is_priority_enabled() , and LOG4C_PRIORITY_WARN .
int log4c_category_list (log4c_category_t ** a_cats, int a_ncats)
Fill in an array with the log4c categories.
Parameters
a_cats
array of
categories that will be filled
a_ncats
number of categories in the array
Returns
-1 if it fails or the number of available categories in log4c.
static LOG4C_INLINE void log4c_category_log (const log4c_category_t *a_category, int a_priority, const char * a_format, ...) [static]
Log a message with the specified priority.
Parameters
a_category
the
log4c_category_t object
a_priority
The priority of this log message.
a_format
Format specifier for the string to write in the
log file.
...
The arguments for a_format
References log4c_category_is_priority_enabled() .
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]
Log a message with the specified priority and a user location info.
Parameters
a_category
the
log4c_category_t object
a_locinfo
a user location info
a_priority
The priority of this log message.
a_format
Format specifier for the string to write in the
log file.
...
The arguments for a_format
References log4c_category_is_priority_enabled() .
log4c_category_t * log4c_category_new (const char * a_name)
Constructor for a log4c_category_t.
Parameters
a_name the category name
Returns
a log4c_category object
Warning
this method should not be called directly. You should use the log4c_category_get() method in order to preserve the categories hierarchy.
References LOG4C_PRIORITY_NOTSET .
static LOG4C_INLINE void log4c_category_notice (const log4c_category_t *a_category, const char * a_format, ...) [static]
Log a message with notice 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
References log4c_category_is_priority_enabled() , and LOG4C_PRIORITY_NOTICE .
void log4c_category_print (const log4c_category_t * a_category, FILE *a_stream)
prints the log4c_category_t object on a stream
Parameters
a_category
the
log4c_category_t object
a_stream
The stream
int log4c_category_set_additivity (log4c_category_t * a_category, inta_additivity)
Sets a new additivity flag for this category.
Parameters
a_category
the
log4c_category_t object
a_additivity
the new category additivity
Returns
the previous category additivity
const struct __log4c_appender * log4c_category_set_appender(log4c_category_t * this, log4c_appender_t * a_appender)
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
int log4c_category_set_priority (log4c_category_t * a_category, inta_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
References LOG4C_PRIORITY_UNKNOWN .
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
References log4c_category_is_priority_enabled() , and LOG4C_PRIORITY_WARN .
Author
Generated automatically by Doxygen for log4c from the source code.