pacemaker
2.1.9-49aab99839
Scalable High-Availability cluster resource manager
|
Deprecated Pacemaker logging API. More...
#include <stdint.h>
#include <glib.h>
#include <libxml/tree.h>
Go to the source code of this file.
Macros | |
#define | do_crm_log_always(level, fmt, args...) |
Log a message using constant priority. More... | |
#define | crm_str(x) (const char *) ((x)? (x) : "<null>") |
Enumerations | |
enum | xml_log_options { xml_log_option_filtered = 0x0001, xml_log_option_formatted = 0x0002, xml_log_option_text = 0x0004, xml_log_option_full_fledged = 0x0008, xml_log_option_diff_plus = 0x0010, xml_log_option_diff_minus = 0x0020, xml_log_option_diff_short = 0x0040, xml_log_option_diff_all = 0x0100, xml_log_option_dirty_add = 0x1000, xml_log_option_open = 0x2000, xml_log_option_children = 0x4000, xml_log_option_close = 0x8000 } |
Functions | |
gboolean | crm_log_cli_init (const char *entity) |
gboolean | crm_add_logfile (const char *filename) |
void | log_data_element (int log_level, const char *file, const char *function, int line, const char *prefix, const xmlNode *data, int depth, int legacy_options) |
void | pcmk_log_xml_impl (uint8_t level, const char *text, const xmlNode *xml) |
Deprecated Pacemaker logging API.
Definition in file logging_compat.h.
#define crm_str | ( | x | ) | (const char *) ((x)? (x) : "<null>") |
Definition at line 69 of file logging_compat.h.
#define do_crm_log_always | ( | level, | |
fmt, | |||
args... | |||
) |
Log a message using constant priority.
[in] | level | Priority at which to log the message |
[in] | fmt | printf-style format string literal for message |
[in] | args | Any arguments needed by format string |
level
may be evaluated more than once. This does nothing when level is LOG_STDOUT. Definition at line 58 of file logging_compat.h.
enum xml_log_options |
Definition at line 32 of file logging_compat.h.
gboolean crm_add_logfile | ( | const char * | filename | ) |
gboolean crm_log_cli_init | ( | const char * | entity | ) |
void log_data_element | ( | int | log_level, |
const char * | file, | ||
const char * | function, | ||
int | line, | ||
const char * | prefix, | ||
const xmlNode * | data, | ||
int | depth, | ||
int | legacy_options | ||
) |
Definition at line 408 of file xml_display.c.
void pcmk_log_xml_impl | ( | uint8_t | level, |
const char * | text, | ||
const xmlNode * | xml | ||
) |