doc
Defines | Functions
csync logging internals
csync internal API

Defines

#define CSYNC_LOG(priority,...)   csync_log((char *) CSYNC_LOG_CATEGORY_NAME, priority, __VA_ARGS__)
#define CSYNC_LOG_CATEGORY_NAME   "root"
#define CSYNC_LOG_PRIORITY_ALERT   100
#define CSYNC_LOG_PRIORITY_CRIT   200
#define CSYNC_LOG_PRIORITY_DEBUG   700
#define CSYNC_LOG_PRIORITY_ERROR   300
#define CSYNC_LOG_PRIORITY_FATAL   000
#define CSYNC_LOG_PRIORITY_INFO   600
#define CSYNC_LOG_PRIORITY_NOTICE   500
#define CSYNC_LOG_PRIORITY_NOTSET   900
#define CSYNC_LOG_PRIORITY_TRACE   800
#define CSYNC_LOG_PRIORITY_UNKNOWN   1000
#define CSYNC_LOG_PRIORITY_WARN   500
#define LOG4C_INLINE   inline
#define PRINTF_ATTRIBUTE(a, b)

Functions

static LOG4C_INLINE void csync_log (char *catName, int a_priority, const char *a_format,...) PRINTF_ATTRIBUTE(3
static LOG4C_INLINE int csync_log_fini ()
static LOG4C_INLINE void
static LOG4C_INLINE int 
csync_log_init ()
static LOG4C_INLINE int csync_log_load (const char *path)
static LOG4C_INLINE int csync_log_setappender (char *catName, char *appName)

Define Documentation

#define CSYNC_LOG (   priority,
  ... 
)    csync_log((char *) CSYNC_LOG_CATEGORY_NAME, priority, __VA_ARGS__)

Definition at line 71 of file csync_log.h.

#define CSYNC_LOG_CATEGORY_NAME   "root"

Definition at line 49 of file csync_log.h.

#define CSYNC_LOG_PRIORITY_ALERT   100

Definition at line 90 of file csync_log.h.

#define CSYNC_LOG_PRIORITY_CRIT   200

Definition at line 91 of file csync_log.h.

#define CSYNC_LOG_PRIORITY_DEBUG   700

Definition at line 96 of file csync_log.h.

#define CSYNC_LOG_PRIORITY_ERROR   300

Definition at line 92 of file csync_log.h.

#define CSYNC_LOG_PRIORITY_FATAL   000

Definition at line 89 of file csync_log.h.

#define CSYNC_LOG_PRIORITY_INFO   600

Definition at line 95 of file csync_log.h.

#define CSYNC_LOG_PRIORITY_NOTICE   500

Definition at line 94 of file csync_log.h.

#define CSYNC_LOG_PRIORITY_NOTSET   900

Definition at line 98 of file csync_log.h.

#define CSYNC_LOG_PRIORITY_TRACE   800

Definition at line 97 of file csync_log.h.

#define CSYNC_LOG_PRIORITY_UNKNOWN   1000

Definition at line 99 of file csync_log.h.

#define CSYNC_LOG_PRIORITY_WARN   500

Definition at line 93 of file csync_log.h.

#define LOG4C_INLINE   inline

Definition at line 88 of file csync_log.h.

#define PRINTF_ATTRIBUTE (   a,
 
)

Definition at line 56 of file csync_log.h.


Function Documentation

static LOG4C_INLINE void csync_log ( char *  catName,
int  a_priority,
const char *  a_format,
  ... 
) [static]

Definition at line 161 of file csync_log.h.

static LOG4C_INLINE int csync_log_fini ( ) [static]

The destructor of the logging mechanism.

Returns:
0 on success, less than 0 if an error occured.

Definition at line 140 of file csync_log.h.

static LOG4C_INLINE void static LOG4C_INLINE int csync_log_init ( ) [static]

The constructor of the logging mechanism.

Returns:
0 on success, less than 0 if an error occured.

Definition at line 109 of file csync_log.h.

static LOG4C_INLINE int csync_log_load ( const char *  path) [static]

Load resource configuration file.

Parameters:
Pathto the file to load
Returns:
0 on success, less than 0 if an error occured.

Definition at line 124 of file csync_log.h.

static LOG4C_INLINE int csync_log_setappender ( char *  catName,
char *  appName 
) [static]

Definition at line 148 of file csync_log.h.