doc
Macros | Functions
csync_log.h File Reference
#include "config.h"
#include <stdarg.h>
#include <stdio.h>

Go to the source code of this file.

Macros

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

Detailed Description

Logging interface of csync.

Definition in file csync_log.h.