pacemaker  2.1.7-0f7f88312f
Scalable High-Availability cluster resource manager
Macros | Typedefs | Functions | Variables
output_log.c File Reference
#include <crm_internal.h>
#include <crm/common/cmdline_internal.h>
#include <ctype.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
Include dependency graph for output_log.c:

Go to the source code of this file.

Macros

#define logger(priv, fmt, args...)
 
#define logger_va(priv, level, fmt, ap)
 

Typedefs

typedef struct private_data_s private_data_t
 

Functions

pcmk__output_tpcmk__mk_log_output (char **argv)
 
uint8_t pcmk__output_get_log_level (const pcmk__output_t *out)
 
void pcmk__output_set_log_level (pcmk__output_t *out, uint8_t log_level)
 
void pcmk__output_set_log_filter (pcmk__output_t *out, const char *file, const char *function, uint32_t line, uint32_t tags)
 

Variables

GOptionEntry pcmk__log_output_entries []
 

Macro Definition Documentation

◆ logger

#define logger (   priv,
  fmt,
  args... 
)
Value:
do { \
qb_log_from_external_source(pcmk__s((priv)->function, __func__), \
pcmk__s((priv)->file, __FILE__), fmt, (priv)->log_level, \
(((priv)->line == 0)? __LINE__ : (priv)->line), (priv)->tags, \
##args); \
} while (0);

Definition at line 41 of file output_log.c.

◆ logger_va

#define logger_va (   priv,
  level,
  fmt,
  ap 
)
Value:
do { \
qb_log_from_external_source_va(pcmk__s((priv)->function, __func__), \
pcmk__s((priv)->file, __FILE__), fmt, level, \
(((priv)->line == 0)? __LINE__ : (priv)->line), (priv)->tags, \
ap); \
} while (0);

Definition at line 57 of file output_log.c.

Typedef Documentation

◆ private_data_t

typedef struct private_data_s private_data_t

Function Documentation

◆ pcmk__mk_log_output()

pcmk__output_t* pcmk__mk_log_output ( char **  argv)

Definition at line 319 of file output_log.c.

◆ pcmk__output_get_log_level()

uint8_t pcmk__output_get_log_level ( const pcmk__output_t out)

Definition at line 357 of file output_log.c.

◆ pcmk__output_set_log_filter()

void pcmk__output_set_log_filter ( pcmk__output_t out,
const char *  file,
const char *  function,
uint32_t  line,
uint32_t  tags 
)

Definition at line 394 of file output_log.c.

◆ pcmk__output_set_log_level()

void pcmk__output_set_log_level ( pcmk__output_t out,
uint8_t  log_level 
)

Definition at line 369 of file output_log.c.

Variable Documentation

◆ pcmk__log_output_entries

GOptionEntry pcmk__log_output_entries[]
Initial value:
= {
{ NULL }
}

Definition at line 19 of file output_log.c.