pacemaker  2.1.0-7c3f660
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
logging_internal.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PCMK__LOGGING_INTERNAL_H
 
#define pcmk__config_err(fmt...)
 
#define pcmk__config_warn(fmt...)
 
#define pcmk__log_else(level, else_action)
 

Functions

void pcmk__cli_init_logging (const char *name, unsigned int verbosity)
 
int pcmk__add_logfile (const char *filename)
 Add a file to be used as a Pacemaker detail log. More...
 

Macro Definition Documentation

#define pcmk__config_err (   fmt...)
Value:
do { \
crm_err(fmt); \
} while (0)
gboolean crm_config_error
Definition: utils.c:52
#define crm_err(fmt, args...)
Definition: logging.h:350

Definition at line 24 of file logging_internal.h.

#define pcmk__config_warn (   fmt...)
Value:
do { \
crm_warn(fmt); \
} while (0)
#define crm_warn(fmt, args...)
Definition: logging.h:351
gboolean crm_config_warning
Definition: utils.c:53

Definition at line 36 of file logging_internal.h.

#define pcmk__log_else (   level,
  else_action 
)
Value:
do { \
static struct qb_log_callsite *trace_cs = NULL; \
\
if (trace_cs == NULL) { \
trace_cs = qb_log_callsite_get(__func__, __FILE__, "log_else", \
level, __LINE__, 0); \
} \
if (!crm_is_callsite_active(trace_cs, level, 0)) { \
else_action; \
} \
} while(0)
gboolean crm_is_callsite_active(struct qb_log_callsite *cs, uint8_t level, uint32_t tags)
Definition: logging.c:626

Definition at line 55 of file logging_internal.h.

#define PCMK__LOGGING_INTERNAL_H

Definition at line 15 of file logging_internal.h.

Function Documentation

int pcmk__add_logfile ( const char *  filename)

Add a file to be used as a Pacemaker detail log.

Parameters
[in]filenameName of log file to use
Returns
Standard Pacemaker return code

Definition at line 305 of file logging.c.

void pcmk__cli_init_logging ( const char *  name,
unsigned int  verbosity 
)

Definition at line 1048 of file logging.c.