GRPC Core  1.0.0
Data Structures | Macros | Typedefs | Enumerations | Functions
log.h File Reference
#include <inttypes.h>
#include <stdarg.h>
#include <stdlib.h>
#include <grpc/impl/codegen/port_platform.h>

Go to the source code of this file.

Data Structures

struct  gpr_log_func_args
 

Macros

#define GPR_LOG_VERBOSITY_UNSET   -1
 
#define GPR_DEBUG   __FILE__, __LINE__, GPR_LOG_SEVERITY_DEBUG
 
#define GPR_INFO   __FILE__, __LINE__, GPR_LOG_SEVERITY_INFO
 
#define GPR_ERROR   __FILE__, __LINE__, GPR_LOG_SEVERITY_ERROR
 
#define GPR_ASSERT(x)
 

Typedefs

typedef enum gpr_log_severity gpr_log_severity
 
typedef void(* gpr_log_func) (gpr_log_func_args *args)
 

Enumerations

enum  gpr_log_severity { GPR_LOG_SEVERITY_DEBUG, GPR_LOG_SEVERITY_INFO, GPR_LOG_SEVERITY_ERROR }
 

Functions

const char * gpr_log_severity_string (gpr_log_severity severity)
 
GPRAPI void gpr_log (const char *file, int line, gpr_log_severity severity, const char *format,...) GPRC_PRINT_FORMAT_CHECK(4
 
GPRAPI void GPRAPI void gpr_log_message (const char *file, int line, gpr_log_severity severity, const char *message)
 
GPRAPI void gpr_set_log_verbosity (gpr_log_severity min_severity_to_print)
 
GPRAPI void gpr_log_verbosity_init ()
 
GPRAPI void gpr_set_log_function (gpr_log_func func)
 

Macro Definition Documentation

#define GPR_ASSERT (   x)
Value:
do { \
if (!(x)) { \
gpr_log(GPR_ERROR, "assertion failed: %s", #x); \
abort(); \
} \
} while (0)
GPRAPI void gpr_log(const char *file, int line, gpr_log_severity severity, const char *format,...) GPRC_PRINT_FORMAT_CHECK(4
#define GPR_ERROR
Definition: log.h:73
#define GPR_DEBUG   __FILE__, __LINE__, GPR_LOG_SEVERITY_DEBUG
#define GPR_ERROR   __FILE__, __LINE__, GPR_LOG_SEVERITY_ERROR
#define GPR_INFO   __FILE__, __LINE__, GPR_LOG_SEVERITY_INFO
#define GPR_LOG_VERBOSITY_UNSET   -1

Typedef Documentation

typedef void(* gpr_log_func) (gpr_log_func_args *args)

Enumeration Type Documentation

Enumerator
GPR_LOG_SEVERITY_DEBUG 
GPR_LOG_SEVERITY_INFO 
GPR_LOG_SEVERITY_ERROR 

Function Documentation

GPRAPI void gpr_log ( const char *  file,
int  line,
gpr_log_severity  severity,
const char *  format,
  ... 
)
GPRAPI void GPRAPI void gpr_log_message ( const char *  file,
int  line,
gpr_log_severity  severity,
const char *  message 
)
const char* gpr_log_severity_string ( gpr_log_severity  severity)
GPRAPI void gpr_log_verbosity_init ( )
GPRAPI void gpr_set_log_function ( gpr_log_func  func)
GPRAPI void gpr_set_log_verbosity ( gpr_log_severity  min_severity_to_print)