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_compat.h File Reference

Deprecated Pacemaker logging API. More...

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

#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:46
#define LOG_STDOUT
Definition: logging.h:41

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 38 of file logging_compat.h.

Function Documentation

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

Definition at line 1070 of file logging.c.

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

Definition at line 1063 of file logging.c.