pacemaker  2.1.3-ea053b43a
Scalable High-Availability cluster resource manager
Macros | Functions
logging_compat.h File Reference

Deprecated Pacemaker logging API. More...

#include <glib.h>
Include dependency graph for logging_compat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define do_crm_log_always(level, fmt, args...)
 Log a message using constant priority. More...
 

Functions

gboolean crm_log_cli_init (const char *entity)
 
gboolean crm_add_logfile (const char *filename)
 

Detailed Description

Deprecated Pacemaker logging API.

Deprecated:
Do not include this header directly. Do not use Pacemaker libraries for general-purpose logging; libqb's logging API is a suitable replacement. The logging APIs in this header, and the header itself, will be removed in a future release.

Definition in file logging_compat.h.

Macro Definition Documentation

◆ do_crm_log_always

#define do_crm_log_always (   level,
  fmt,
  args... 
)
Value:
do { \
switch (level) { \
case LOG_STDOUT: case LOG_NEVER: \
break; \
default: \
qb_log((level), fmt , ##args); \
break; \
} \
} while (0)
#define LOG_NEVER
Definition: logging.h:47
#define LOG_STDOUT
Definition: logging.h:42

Log a message using constant priority.

Parameters
[in]levelPriority at which to log the message
[in]fmtprintf-style format string literal for message
[in]argsAny arguments needed by format string
Deprecated:
Do not use Pacemaker for general-purpose logging
Note
This is a macro, and level may be evaluated more than once. This does nothing when level is LOG_STDOUT.

Definition at line 40 of file logging_compat.h.

Function Documentation

◆ crm_add_logfile()

gboolean crm_add_logfile ( const char *  filename)
Deprecated:
Do not use Pacemaker for general-purpose logging

Definition at line 1114 of file logging.c.

◆ crm_log_cli_init()

gboolean crm_log_cli_init ( const char *  entity)
Deprecated:
Do not use Pacemaker for general-purpose logging

Definition at line 1107 of file logging.c.