GRPC C++  1.39.1
Macros | Functions
log.cc File Reference
#include <grpc/support/port_platform.h>
#include <grpc/support/alloc.h>
#include <grpc/support/atm.h>
#include <grpc/support/log.h>
#include "src/core/lib/gpr/string.h"
#include "src/core/lib/gprpp/global_config.h"
#include <stdio.h>

Macros

#define GPR_DEFAULT_LOG_VERBOSITY_STRING   "ERROR"
 

Functions

 GPR_GLOBAL_CONFIG_DEFINE_STRING (grpc_verbosity, "ERROR", "Default gRPC logging verbosity") GPR_GLOBAL_CONFIG_DEFINE_STRING(grpc_stacktrace_minloglevel
 
void gpr_default_log (gpr_log_func_args *args)
 
const char * gpr_log_severity_string (gpr_log_severity severity)
 Returns a string representation of the log severity. More...
 
int gpr_should_log (gpr_log_severity severity)
 
int gpr_should_log_stacktrace (gpr_log_severity severity)
 
void gpr_log_message (const char *file, int line, gpr_log_severity severity, const char *message)
 
void gpr_set_log_verbosity (gpr_log_severity min_severity_to_print)
 Set global log verbosity. More...
 
void gpr_log_verbosity_init ()
 
void gpr_set_log_function (gpr_log_func f)
 

Macro Definition Documentation

◆ GPR_DEFAULT_LOG_VERBOSITY_STRING

#define GPR_DEFAULT_LOG_VERBOSITY_STRING   "ERROR"

Function Documentation

◆ gpr_default_log()

void gpr_default_log ( gpr_log_func_args args)

◆ GPR_GLOBAL_CONFIG_DEFINE_STRING()

GPR_GLOBAL_CONFIG_DEFINE_STRING ( grpc_verbosity  ,
"ERROR"  ,
"Default gRPC logging verbosity"   
)

◆ gpr_log_message()

void gpr_log_message ( const char *  file,
int  line,
gpr_log_severity  severity,
const char *  message 
)

◆ gpr_log_severity_string()

const char* gpr_log_severity_string ( gpr_log_severity  severity)

Returns a string representation of the log severity.

◆ gpr_log_verbosity_init()

void gpr_log_verbosity_init ( void  )

◆ gpr_set_log_function()

void gpr_set_log_function ( gpr_log_func  f)

◆ gpr_set_log_verbosity()

void gpr_set_log_verbosity ( gpr_log_severity  min_severity_to_print)

Set global log verbosity.

◆ gpr_should_log()

int gpr_should_log ( gpr_log_severity  severity)

◆ gpr_should_log_stacktrace()

int gpr_should_log_stacktrace ( gpr_log_severity  severity)