14 #ifndef PCMK__LOGGING_INTERNAL_H
15 # define PCMK__LOGGING_INTERNAL_H
24 # define pcmk__config_err(fmt...) do { \
25 crm_config_error = TRUE; \
36 # define pcmk__config_warn(fmt...) do { \
37 crm_config_warning = TRUE; \
55 # define pcmk__log_else(level, else_action) do { \
56 static struct qb_log_callsite *trace_cs = NULL; \
58 if (trace_cs == NULL) { \
59 trace_cs = qb_log_callsite_get(__func__, __FILE__, "log_else", \
60 level, __LINE__, 0); \
62 if (!crm_is_callsite_active(trace_cs, level, 0)) { \
int pcmk__add_logfile(const char *filename)
Add a file to be used as a Pacemaker detail log.
void pcmk__cli_init_logging(const char *name, unsigned int verbosity)