csync logging internals
[csync internal API]

Collaboration diagram for csync logging internals:


Defines

#define CSYNC_LOG(priority, fmt, rest...)   csync_log((char *) CSYNC_LOG_CATEGORY_NAME, priority, fmt, ##rest)
#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 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,
fmt,
rest...   )     csync_log((char *) CSYNC_LOG_CATEGORY_NAME, priority, fmt, ##rest)

Definition at line 61 of file csync_log.h.

#define CSYNC_LOG_CATEGORY_NAME   "root"

Definition at line 51 of file csync_log.h.

#define CSYNC_LOG_PRIORITY_ALERT   100

Definition at line 79 of file csync_log.h.

#define CSYNC_LOG_PRIORITY_CRIT   200

Definition at line 80 of file csync_log.h.

#define CSYNC_LOG_PRIORITY_DEBUG   700

Definition at line 85 of file csync_log.h.

#define CSYNC_LOG_PRIORITY_ERROR   300

Definition at line 81 of file csync_log.h.

#define CSYNC_LOG_PRIORITY_FATAL   000

Definition at line 78 of file csync_log.h.

#define CSYNC_LOG_PRIORITY_INFO   600

Definition at line 84 of file csync_log.h.

#define CSYNC_LOG_PRIORITY_NOTICE   500

Definition at line 83 of file csync_log.h.

#define CSYNC_LOG_PRIORITY_NOTSET   900

Definition at line 87 of file csync_log.h.

#define CSYNC_LOG_PRIORITY_TRACE   800

Definition at line 86 of file csync_log.h.

#define CSYNC_LOG_PRIORITY_UNKNOWN   1000

Definition at line 88 of file csync_log.h.

#define CSYNC_LOG_PRIORITY_WARN   500

Definition at line 82 of file csync_log.h.

#define LOG4C_INLINE   inline

Definition at line 77 of file csync_log.h.

#define PRINTF_ATTRIBUTE ( a,
 ) 

Definition at line 58 of file csync_log.h.


Function Documentation

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

Definition at line 148 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 127 of file csync_log.h.

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 96 of file csync_log.h.

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

Load resource configuration file.

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

Definition at line 111 of file csync_log.h.

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

Definition at line 135 of file csync_log.h.


Generated on Mon May 4 17:43:40 2009 for doc by  doxygen 1.5.6