|
|
@ -73,12 +73,14 @@ GPRAPI void gpr_log_verbosity_init(void); |
|
|
|
/** Log overrides: applications can use this API to intercept logging calls
|
|
|
|
/** Log overrides: applications can use this API to intercept logging calls
|
|
|
|
and use their own implementations */ |
|
|
|
and use their own implementations */ |
|
|
|
|
|
|
|
|
|
|
|
typedef struct { |
|
|
|
struct gpr_log_func_args { |
|
|
|
const char* file; |
|
|
|
const char* file; |
|
|
|
int line; |
|
|
|
int line; |
|
|
|
gpr_log_severity severity; |
|
|
|
gpr_log_severity severity; |
|
|
|
const char* message; |
|
|
|
const char* message; |
|
|
|
} gpr_log_func_args; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct gpr_log_func_args gpr_log_func_args; |
|
|
|
|
|
|
|
|
|
|
|
typedef void (*gpr_log_func)(gpr_log_func_args* args); |
|
|
|
typedef void (*gpr_log_func)(gpr_log_func_args* args); |
|
|
|
GPRAPI void gpr_set_log_function(gpr_log_func func); |
|
|
|
GPRAPI void gpr_set_log_function(gpr_log_func func); |
|
|
|