#include <crm_internal.h>
#include <sys/param.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <sys/utsname.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <limits.h>
#include <ctype.h>
#include <pwd.h>
#include <grp.h>
#include <time.h>
#include <libgen.h>
#include <signal.h>
#include <bzlib.h>
#include <qb/qbdefs.h>
#include <crm/crm.h>
#include <crm/common/mainloop.h>
Go to the source code of this file.
|
const char * | daemon_option (const char *option) |
|
void | set_daemon_option (const char *option, const char *value) |
|
gboolean | daemon_option_enabled (const char *daemon, const char *option) |
|
void | crm_log_deinit (void) |
|
gboolean | crm_add_logfile (const char *filename) |
|
void | crm_enable_blackbox (int nsig) |
|
void | crm_disable_blackbox (int nsig) |
|
void | crm_write_blackbox (int nsig, struct qb_log_callsite *cs) |
|
gboolean | crm_log_cli_init (const char *entity) |
|
gboolean | crm_is_callsite_active (struct qb_log_callsite *cs, uint8_t level, uint32_t tags) |
|
void | crm_update_callsites (void) |
|
void | crm_log_preinit (const char *entity, int argc, char **argv) |
|
gboolean | crm_log_init (const char *entity, uint8_t level, gboolean daemon, gboolean to_stderr, int argc, char **argv, gboolean quiet) |
|
unsigned int | set_crm_log_level (unsigned int level) |
|
void | crm_enable_stderr (int enable) |
|
void | crm_bump_log_level (int argc, char **argv) |
|
unsigned int | get_crm_log_level (void) |
|
void | crm_log_args (int argc, char **argv) |
|
const char * | pcmk_errorname (int rc) |
|
const char * | pcmk_strerror (int rc) |
|
const char * | bz2_strerror (int rc) |
|
void | crm_log_output_fn (const char *file, const char *function, int line, int level, const char *prefix, const char *output) |
|
char * | crm_strdup_printf (char const *format,...) |
|
§ ARGS_FMT
#define ARGS_FMT "Invoked: %s" |
§ FMT_MAX
§ NAME_MAX
§ bz2_strerror()
const char* bz2_strerror |
( |
int |
rc | ) |
|
§ crm_add_logfile()
gboolean crm_add_logfile |
( |
const char * |
filename | ) |
|
§ crm_bump_log_level()
void crm_bump_log_level |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
§ crm_disable_blackbox()
void crm_disable_blackbox |
( |
int |
nsig | ) |
|
§ crm_enable_blackbox()
void crm_enable_blackbox |
( |
int |
nsig | ) |
|
§ crm_enable_stderr()
void crm_enable_stderr |
( |
int |
enable | ) |
|
§ crm_is_callsite_active()
gboolean crm_is_callsite_active |
( |
struct qb_log_callsite * |
cs, |
|
|
uint8_t |
level, |
|
|
uint32_t |
tags |
|
) |
| |
§ crm_log_args()
void crm_log_args |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
§ crm_log_cli_init()
gboolean crm_log_cli_init |
( |
const char * |
entity | ) |
|
§ crm_log_deinit()
void crm_log_deinit |
( |
void |
| ) |
|
§ crm_log_init()
gboolean crm_log_init |
( |
const char * |
entity, |
|
|
uint8_t |
level, |
|
|
gboolean |
daemon, |
|
|
gboolean |
to_stderr, |
|
|
int |
argc, |
|
|
char ** |
argv, |
|
|
gboolean |
quiet |
|
) |
| |
§ crm_log_output_fn()
void crm_log_output_fn |
( |
const char * |
file, |
|
|
const char * |
function, |
|
|
int |
line, |
|
|
int |
level, |
|
|
const char * |
prefix, |
|
|
const char * |
output |
|
) |
| |
§ crm_log_preinit()
void crm_log_preinit |
( |
const char * |
entity, |
|
|
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
§ crm_strdup_printf()
char* crm_strdup_printf |
( |
char const * |
format, |
|
|
|
... |
|
) |
| |
§ crm_update_callsites()
void crm_update_callsites |
( |
void |
| ) |
|
§ crm_write_blackbox()
void crm_write_blackbox |
( |
int |
nsig, |
|
|
struct qb_log_callsite * |
cs |
|
) |
| |
§ daemon_option()
const char* daemon_option |
( |
const char * |
option | ) |
|
§ daemon_option_enabled()
gboolean daemon_option_enabled |
( |
const char * |
daemon, |
|
|
const char * |
option |
|
) |
| |
§ get_crm_log_level()
unsigned int get_crm_log_level |
( |
void |
| ) |
|
§ pcmk_errorname()
const char* pcmk_errorname |
( |
int |
rc | ) |
|
§ pcmk_strerror()
const char* pcmk_strerror |
( |
int |
rc | ) |
|
§ set_crm_log_level()
unsigned int set_crm_log_level |
( |
unsigned int |
level | ) |
|
§ set_daemon_option()
void set_daemon_option |
( |
const char * |
option, |
|
|
const char * |
value |
|
) |
| |
§ crm_is_daemon
§ crm_log_level
unsigned int crm_log_level = LOG_INFO |
§ crm_log_priority
unsigned int crm_log_priority = LOG_NOTICE |
§ crm_trace_nonlog
unsigned int crm_trace_nonlog = 0 |