pacemaker  2.1.9-49aab99839
Scalable High-Availability cluster resource manager
Macros | Typedefs | Functions
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)
 

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 37 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 53 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 315 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 363 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 419 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 390 of file output_log.c.