doc
csync logging internals

Macros

#define CSYNC_LOG(priority, ...)
 
#define PRINTF_ATTRIBUTE(a, b)
 

Enumerations

enum  csync_log_priority_e {
  CSYNC_LOG_PRIORITY_NOLOG = 0 , CSYNC_LOG_PRIORITY_FATAL , CSYNC_LOG_PRIORITY_ALERT , CSYNC_LOG_PRIORITY_CRIT ,
  CSYNC_LOG_PRIORITY_ERROR , CSYNC_LOG_PRIORITY_WARN , CSYNC_LOG_PRIORITY_NOTICE , CSYNC_LOG_PRIORITY_INFO ,
  CSYNC_LOG_PRIORITY_DEBUG , CSYNC_LOG_PRIORITY_TRACE , CSYNC_LOG_PRIORITY_NOTSET , CSYNC_LOG_PRIORITY_UNKNOWN
}
 

Functions

void csync_log (int verbosity, const char *function, const char *format,...) PRINTF_ATTRIBUTE(3
 

Detailed Description

Macro Definition Documentation

◆ CSYNC_LOG

#define CSYNC_LOG ( priority,
... )
Value:
csync_log(priority, __func__, __VA_ARGS__)
void csync_log(int verbosity, const char *function, const char *format,...) PRINTF_ATTRIBUTE(3

Definition at line 57 of file csync_log.h.

◆ PRINTF_ATTRIBUTE

#define PRINTF_ATTRIBUTE ( a,
b )

Definition at line 39 of file csync_log.h.

Referenced by csync_log().

Enumeration Type Documentation

◆ csync_log_priority_e

Enumerator
CSYNC_LOG_PRIORITY_NOLOG 
CSYNC_LOG_PRIORITY_FATAL 
CSYNC_LOG_PRIORITY_ALERT 
CSYNC_LOG_PRIORITY_CRIT 
CSYNC_LOG_PRIORITY_ERROR 
CSYNC_LOG_PRIORITY_WARN 
CSYNC_LOG_PRIORITY_NOTICE 
CSYNC_LOG_PRIORITY_INFO 
CSYNC_LOG_PRIORITY_DEBUG 
CSYNC_LOG_PRIORITY_TRACE 
CSYNC_LOG_PRIORITY_NOTSET 
CSYNC_LOG_PRIORITY_UNKNOWN 

Definition at line 42 of file csync_log.h.

Function Documentation

◆ csync_log()

void csync_log ( int verbosity,
const char * function,
const char * format,
... )

References PRINTF_ATTRIBUTE.