pacemaker  2.1.0-7c3f660
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
logging_compat.h
Go to the documentation of this file.
1 /*
2  * Copyright 2004-2021 the Pacemaker project contributors
3  *
4  * The version control history for this file may have further details.
5  *
6  * This source code is licensed under the GNU General Public License version 2
7  * or later (GPLv2+) WITHOUT ANY WARRANTY.
8  */
9 
10 #ifndef PCMK__COMMON_LOGGING_COMPAT__H
11 # define PCMK__COMMON_LOGGING_COMPAT__H
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
38 # define do_crm_log_always(level, fmt, args...) do { \
39  switch (level) { \
40  case LOG_STDOUT: case LOG_NEVER: \
41  break; \
42  default: \
43  qb_log((level), fmt , ##args); \
44  break; \
45  } \
46  } while (0)
47 
49 gboolean crm_log_cli_init(const char *entity);
50 
52 gboolean crm_add_logfile(const char *filename);
53 
54 #ifdef __cplusplus
55 }
56 #endif
57 
58 #endif // PCMK__COMMON_LOGGING_COMPAT__H
gboolean crm_log_cli_init(const char *entity)
Definition: logging.c:1063
gboolean crm_add_logfile(const char *filename)
Definition: logging.c:1070