#include <grpc/support/port_platform.h>
#include <stdio.h>
#include <string.h>
#include <grpc/support/alloc.h>
#include <grpc/support/atm.h>
#include <grpc/support/log.h>
#include "src/core/lib/gprpp/global_config.h"
Go to the source code of this file.
Macros | |
#define | GPR_DEFAULT_LOG_VERBOSITY_STRING "ERROR" |
Functions | |
void | gpr_default_log (gpr_log_func_args *args) |
GPR_GLOBAL_CONFIG_DEFINE_STRING (grpc_verbosity, GPR_DEFAULT_LOG_VERBOSITY_STRING, "Default gRPC logging verbosity") GPR_GLOBAL_CONFIG_DEFINE_STRING(grpc_stacktrace_minloglevel | |
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) |
void | gpr_log_verbosity_init () |
void | gpr_set_log_function (gpr_log_func f) |
void | gpr_set_log_verbosity (gpr_log_severity min_severity_to_print) |
int | gpr_should_log (gpr_log_severity severity) |
int | gpr_should_log_stacktrace (gpr_log_severity severity) |
void | gpr_unreachable_code (const char *reason, const char *file, int line) |
static gpr_atm | parse_log_severity (const char *str, gpr_atm error_value) |
Variables | |
static gpr_atm | g_log_func = reinterpret_cast<gpr_atm>(gpr_default_log) |
static gpr_atm | g_min_severity_to_print = GPR_LOG_SEVERITY_UNSET |
static gpr_atm | g_min_severity_to_print_stacktrace = GPR_LOG_SEVERITY_UNSET |
static constexpr gpr_atm | GPR_LOG_SEVERITY_NONE = GPR_LOG_SEVERITY_ERROR + 11 |
Messages logged at the same or higher level than this will print static constexpr stacktrace gpr_atm | GPR_LOG_SEVERITY_UNSET = GPR_LOG_SEVERITY_ERROR + 10 |
void gpr_default_log | ( | gpr_log_func_args * | args | ) |
GPR_GLOBAL_CONFIG_DEFINE_STRING | ( | grpc_verbosity | , |
GPR_DEFAULT_LOG_VERBOSITY_STRING | , | ||
"Default gRPC logging verbosity" | |||
) |
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 | ) |
void gpr_set_log_function | ( | gpr_log_func | f | ) |
void gpr_set_log_verbosity | ( | gpr_log_severity | min_severity_to_print | ) |
int gpr_should_log | ( | gpr_log_severity | severity | ) |
int gpr_should_log_stacktrace | ( | gpr_log_severity | severity | ) |
|
static |
|
static |
|
static |
|
staticconstexpr |
|
staticconstexpr |